|
|
|
|
|
by vinceguidry
2807 days ago
|
|
We're migrating an app from Ruby to NodeJS, and I keep hoping it'll get better, but everywhere I look, from the inconsistency and constant shifting of language semantics to the immaturity of the ecosystem, and how the former practically enshrines the latter, I can confidently state that Javascript is an objectively worse language. Attempts to solve problems caused by Javascript only make the whole thing worse. At the moment, I actually prefer vanilla javascript to ES6-7. ES6 is inconsistent in awful ways. You still can't rely on bindings to stay put and new additions like the splat operator just don't work the same way all the time. The more I learn JS, the more I hate it. I think eventually the web development community will come around, Node will lose mindshare, and compile-to-js languages will find their place in the sun again. I suspect that people who actually like the language are experiencing a form of Stockholm Syndrome. |
|
ES6 is vanilla JavaScript. Most modern browsers have support >98% of added ES6 functionality for several major versions at this point. Admittedly, Node.js is still lacking, but it's getting there.
> You still can't rely on bindings to stay put and new additions like the splat operator just don't work the same way all the time.
Unless you have a bug to report about undefined or non-deterministic behavior, then it must be something you're doing. Random functionality is not intended behavior.
> eventually the web development community will come around... and compile-to-js languages will find their place in the sun again.
This is implying they were ever there. The big ones that come to mind were terrible. They would produce way more bloated frontends than anything we see today. In general, adding a layer of abstraction can be incredibly useful sometimes, but they can come at a steep cost.
What you include in "compile-to-JS" does get a little tricky to define, though. Things like TypeScript or even Babel can kind of count here. I think we will likely continue to see these, but I seriously doubt we'll see a resurgence of anything like GWT again.
> I suspect that people who actually like the language are experiencing a form of Stockholm Syndrome.
Sure, but the same can be said for anybody working with computers ;)