3 ms·
Stopped reading it at "JavaScript is a toy programming language." While the author is not alone with this view, it's shared by many of my backend colleges. Wit
by tiborsaas 7y ago
Stopped reading it at "JavaScript is a toy programming language."
While the author is not alone with this view, it's shared by many of my backend colleges. With such a condescending view I will hardly gain any insight I'm afraid.
- Torwald 7y agoJavaScript is a Scheme with a 90ies pop-art name. It runs on the server it runs in the browser. The curly brackets. What's not to love?
- Spivak 7y agoJavaScript isn't Scheme: https://journal.stuffwithstuff.com/2013/07/18/javascript-isnt-scheme/ https://journal.stuffwithstuff.com/2013/07/18/javascript-isn...
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- axguscbklp 7y agoYeah, JavaScript has problems but come on, just the fact that it has closures and first-class functions (and did a lot to popularize both, for that matter) makes it pretty cool in my book. It's a fun and powerful language. The author also trots out the standard go-to argument of JavaScript haters. He writes that JavaScript "has deeply ingrained quirks and bugs which can never be fixed without breaking the millions of scripts that have made peace with the existence of those bugs and depend upon the well-known workaround" and he links to https://github.com/denysdovhan/wtfjs https://github.com/denysdovhan/wtfjs, a typical list of JavaScript's well-known type-casting quirks, etc. Pretty much all languages have little quirks. Actual JavaScript programmers usually learn how to avoid JavaScript's quirks pretty quickly and easily. In my experience, people who fixate on JavaScript's quirks generally do not understand the language very well. If they did, they could criticize more substantial things about JavaScript than just things like "[] == ![]; // -> true".
- int_19h 7y agoWhat modern language doesn't have first-class functions and closures? (Except for C, but in that case it's obviously by design, and for good reasons.)
- tiborsaas 7y agoJava only added first class functions relatively recently
- int_19h 7y agoJava added them in version 8, which was 6 years ago. And it was one of the last mainstream languages to add that feature - even PHP and C++ had it for many years by then. So I don't think it's a useful metric for "cool" in 2020, and it hasn't been for a long time.