Hacker News new | ask | show | jobs
by typicaljoe 6524 days ago
JavaScript really isn't that bad. It is different to be sure and lost when it comes to OO. But like "The Good Parts" book explains, JavaScript really isn't about OO. Or strong typing. It doesn't need to be. It would be nice if the certain features worked correctly and it worked the same in all browsers, but I'd rather have less features and not more. With closure and first class functions you can get most of what you need once you learn a basic model for building apps.
2 comments

I feel like this is excuse making. It's not like changing javascript is outside of our capabilities.

Scheme is really similar to JavaScript in that it is an extremely basic set of core functionality, but they've gone to great lengths to make the experience of using it consistent. Part of the problem is that most of schemes are written in scheme, but most javascripts are not written mostly in JavaScript. That means there is no style guide implicit in the source code. If a bunch of code just picked an object instantiation method, then there would be no problem.

"JavaScript really isn't about OO. Or strong typing. It doesn't need to be."

Yet, ECMAScript 4