HackerTrans
TopNewTrendsCommentsPastAskShowJobs

theprotocol

no profile record

Submissions

ES modules are terrible

gist.github.com
172 points·by theprotocol·قبل 5 سنوات·165 comments

comments

theprotocol
·قبل 5 سنوات·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 سنوات·discuss
I just encountered this. FYI You can use v2 which still retains commonjs support.
theprotocol
·قبل 5 سنوات·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 سنوات·discuss
Absolutely this. It's not necessarily communicated that well in the article, but this is the main reason people are frustrated.
theprotocol
·قبل 5 سنوات·discuss
Thanks for mentioning these! They look pretty interesting.
theprotocol
·قبل 5 سنوات·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 سنوات·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 سنوات·discuss
Do you think these courses would be worthwhile for a seasoned software engineer?