News for hackers. Stuff that matters.
Re:RawJS is a better way to call document.createElement() by whstl on Thursday January 04, 2024 @10:04PM (#38875229)
Yes, I edited it as I went to make it more clear.

> The RawJS author was saying that he doesn't like es modules as a language feature [...] You seem to be talking about a separate issue (dependency injection).

Yes, that's why I said "I don't personally have a problem with ES Modules per se". Because I don't. But I dislike the abuse of the feature, and frameworks that force its use.

Re:RawJS is a better way to call document.createElement() by throwitaway1123 on Friday January 05, 2024 @02:55AM (#38876778)
> Yes, that's why I said "I don't personally have a problem with ES Modules per se". Because I don't.

But you also quoted a criticism of ES Modules and explicitly said "I do agree". That's the part that threw me off. The commenter you were quoting (and agreeing with) wasn't talking about dependency injection. Earlier in the thread he said "I admittedly have a visceral hatred for ES modules", and this was him listing his grievances. Dependency injection and ES Modules are completely orthogonal.

I think your other comment where you admit that this is off topic was a more straightforward statement of your position, because you didn't quote (or purport to agree with) an unrelated argument [1].

[1] https://news.ycombinator.com/item?id=38865550

Re:RawJS is a better way to call document.createElement() by whstl on Friday January 05, 2024 @04:42AM (#38877311)
Well, sorry for throwing you off, then. That's why I was verbose with my edits: to ensure there was no misunderstanding. Hope all is clear now.