From this talk by Derek Slager: ClojureScript for Skeptics, there is a nice section about the “Shaky Foundation” of javascript:

If you ever want to be entertained, if your’re bored, go to stackoverflow, click the javacript tag and find the most popular stuff. And you will find examples after examples of this

And then he goes to explain that in clojurescript, you have access to the google closure library [1]. So most of the stackoverflow questions that he goes through are trivial in clojurescript.

This one about for-in deserves a special mention because of the length required to go through all the details. And the gist of it being: “Don’t use it, it will hurt you”

All in all, this is a really great talk. And I do agree that, provided you don’t write javascript for a living, browsing the javascript tag on stackoverflow is somewhat funny.

Taking a step back, it is amazing that javascript developers are willing to put up with so much crap. Everyone is upvotting, and noone is saying “I’m done with this”. Javascript is nuts.



[1] Why isn’t that library isn’t more popular? This is what google uses for most of their apps including search, maps, gmail, docs… not angular