News for hackers. Stuff that matters.
Re:State of JavaScript 2021 by junon on Wednesday February 16, 2022 @08:50AM (#30359876)
> JavaScript is in a tremendously better state today compared to the first survey in 2016. Back then, only 21% of you used TypeScript, compared to a nice 69% today.

... what? Typescript isn't Javascript, just like C++ isn't C. They're two completely separate languages controlled by two completely separate entities.

Typescript is cool but it's not a replacement to Javascript. I don't see the point of implying that not using Typescript is "not nice".

Re:State of JavaScript 2021 by mwid on Monday February 21, 2022 @03:13PM (#30420032)
TypeScript is a "replacement" for JavaScript in that it has become the defacto standard for any serious project for at least three years now.

They are not two separate languages at all, TS is a superset of JS and exists within the JS ecosystem and is designed so that JS projects can be incrementally migrated to TS, it's one of the first things in the documentation.