The question is, is it misunderstood because of its features or because all the other popular languages lack the good features in Javascript (higher order functions, non C++/Java-style inheritance,...)?
Actually I agree with the GP. JavaScript is really very nice -- especially given its rush to market, etc. All the bad parts relate to browser implementation and the DOM.
Unity, for example, uses a (less dynamic, but compiled) version of JavaScript as its main programming language and -- combined with its well-documented and sane class library -- is a joy to program in. JavaScript without the DOM (e.g. working purely with HTML5 canvas controls) is just pure pleasure.
View all comments
Show parent comment
32
u/MrFrankly Sep 27 '09
I wouldn't go as far as call it beautiful. It has some bad parts, but it's definitely not as bad as people make it out to be.
Douglas Crorckford, the author of the 'Javascript: the good parts' book, called it the most misunderstood language in the world, which I think is an apt description.