3 ms·
JavaScript is a deeply flawed language. It has both undefined and null. You almost never use the == operator... except as a workaround to easily check if someth
by Pharylon 9y ago
JavaScript is a deeply flawed language. It has both undefined and null. You almost never use the == operator... except as a workaround to easily check if something is either null or undefined.
That being said, modern JavaScript is actually pretty nice, once you know where the pitfalls are.
But if JavaScript wasn't allowed to run by default, it would have never reached it's current level. It'd still be a deeply flawed toy scripting language.
- jasonkostempski 9y ago"But if JavaScript wasn't allowed to run by default, it would have never reached it's current level." I was thinking about that too but I'm not sure it's true. There are some real universally useful applications (e.g. maps; office suites; email; heck, even social media) that require some code to function and I think just about everyone would have been OK with having to grant permissions one time to use them. And all the companies currently making those types of applications helped make JS what it is. Although the most prominent one is the one that has made all it's money on ads and tracking so maybe that's not such a good argument. Anyway, now that we have JS in its current state, maybe we could think about starting to prompt by default, starting with JS from external domains :) (I know, fat chance).
- jack9 9y agoI think you aren't quite understanding the point. It's not that some language wouldn't have dominated (in the interest of interoperability and functionality needs), but that it probably would have been a product by MS or some other homebrew language. Javascript being codified with the hackneyed ecmascript standard, was the death nell for efficiency in web apps for the last few decades. Without the standard, we probably would have seen a shift to other technologies (some of which would have failed like Silverlight) on emerging browsers, in hindsight.