News for hackers. Stuff that matters.
Re:ES2022 feature: class static initialization blocks by puppet-master on Wednesday September 01, 2021 @07:41AM (#28378565)
Death by a thousand features. Very happy to see all the tons of new library work over the years, but really detest pretty much all new syntax extensions, it's morphed JS into the very thing it was never intended to be.

2006 era JS was more than sufficient to build out highly maintainable 100k+ LOC codebases, all this stuff does is introduce new variations of the same functionality for almost no benefit. Javascript is no longer a small language. I think the only surviving practical small language is Lua, and it's only remained small because the hoards are yet to turn up and bulldoze its original design with infinite feature requests

Re:ES2022 feature: class static initialization blocks by tasogare on Wednesday September 01, 2021 @08:15AM (#28378866)
> 2006 era JS was more than sufficient to build out highly maintainable 100k+ LOC codebases

Typescript wouldn't have been created if this was the case.

Re:ES2022 feature: class static initialization blocks by puppet-master on Wednesday September 01, 2021 @08:34AM (#28379037)
Typescript was about bringing the culture of static languages to a language design that explicitly rejected it. Large JS codebases already existed in 2006 (Gmail, ..)
Re:ES2022 feature: class static initialization blocks by lifthrasiir on Wednesday September 01, 2021 @08:42AM (#28379124)
As far as I know Gmail used the Closure compiler which can be considered as a spiritual precursor to TypeScript. Also several Google service frontends were in fact based on GWT and written in Java.
Re:ES2022 feature: class static initialization blocks by junon on Friday September 03, 2021 @01:10PM (#28406789)
Microsoft creates useless things all the time and pushes them until they're finally accepted.