HackerTrans
TopNewTrendsCommentsPastAskShowJobs

theprotocol

no profile record

Submissions

ES modules are terrible

gist.github.com
172 points·by theprotocol·5 anni fa·165 comments

comments

theprotocol
·5 anni fa·discuss
I can relate to this. The "permission" aspect also cuts both ways sometimes, because I learned to be cautious and then _that_ became the thing I was doing wrong, according to others, who berated me for not being assertive enough.
theprotocol
·5 anni fa·discuss
I just encountered this. FYI You can use v2 which still retains commonjs support.
theprotocol
·5 anni fa·discuss
The incompatibility is indeed exponentiated with TypeScript.

There is currently no non-hacky way for using both legacy modules and ES Modules in the same project, and many libraries on NPM have moved to ESM-only. TypeScript's transpilation needs to know what to target as regards modules and JS version, which makes things even crazier than they already are.
theprotocol
·5 anni fa·discuss
Absolutely this. It's not necessarily communicated that well in the article, but this is the main reason people are frustrated.
theprotocol
·5 anni fa·discuss
Thanks for mentioning these! They look pretty interesting.
theprotocol
·5 anni fa·discuss
The worst one for me is the lack of visual feedback after clicking on a link. It makes me question whether I clicked properly and leads me to click again.
theprotocol
·5 anni fa·discuss
> a French news article [about Japan]

Interestingly I experienced persistent bullying that included physical assault and mental abuse (it was always successfully passed off as a joke when they did something to me) in the French system.

It was so bad that I still relive it daily every single day now, many many years later.
theprotocol
·5 anni fa·discuss
Do you think these courses would be worthwhile for a seasoned software engineer?