馃懡 martin

JavaScript is 26 years old today. Crazy. Feels more like NaN years to me.

3 years ago 路 馃憤 aka_dude, antolius, krixano, enceladus, bronzie_beat, cobradile94, gwenprime

Actions

馃憢 Join Station

9 Replies

馃懡 comatoast

Mistakes were made. 路 2 years ago

馃懡 marginalia

I have no real gripes with the language itself, but the ecosystem seems extremely immature. Stage 4 framework cancer on one hand, and the comically insecure packaging system on the other. It's like they're determined to repeat every mistake other languages have made, and invent a few new ones to boot. 路 3 years ago

馃懡 krixano

So, imo, the popularity of hating on JS is *absolutely* warranted, especially when you are basically forced into using it in some sense. That and the JS ecosystem has became terrible, with NPM and Webpack (one of the worst things to ever exist). 路 3 years ago

馃懡 krixano

@martin I'm gonna have to disagree with you on this :P

Javascript is terrible even in any version of it. A bad programming language is one that, even with a good programmer, isn't able to write the best code. Part of the problem with JS is that there's no type system. The other is that it's Object-Oriented-y (technically, Object Prototypes). And the last is the API with browsers and with the DOM (the DOM is pretty horrible to program for, in my experience). 路 3 years ago

馃懡 ailolai

JS seems to be one of those things you build as a temporary diy solution that then grows into a monster. As some provisional law we had in Spain going on, patched, for one and a half centuries 路 3 years ago

馃懡 martin

@dimitrigorvachov Yeah in part, and also just because it seems popular to people to hate it. Personally I think bad systems are almost always due to bad programming and design, much more than due to bad programming languages. 路 3 years ago

馃懡 dimitrigorvachov

so is the hate for it that I鈥檝e seen just for the older versions? Because you tend to see a lot of hate geared toward JavaScript 路 3 years ago

馃懡 martin

@dimitrigorvachov To be fair, the language has evolved a lot since 1995, especially more recently. Async programming is now much better with async/await, and things like object/array destructuring spread, optional chaining, etc., make writing JS much nicer. Perf is also massively ahead of most other dynamic languages. That said, all my JavaScript code is TypeScript these days, because really, why would anyone want to work on a long-term project with other people without even a basic type system. TS for me, in that sense, replaces JS, and the general trend is in that direction (see for example: https://2020.stateofjs.com/en-US/technologies/javascript-flavors/) 路 3 years ago

https://2020.stateofjs.com/en-US/technologies/javascript-flavors/

馃懡 dimitrigorvachov

i鈥檓 surprised that in that long of a time, no one has attempted to make a Java script replacement. 路 3 years ago