An interesting article on SitePoint in which Dmitry Baranovskiy, creator of the Raphaël JavaScript library, talks about the “terrible code” behind Google Closure and describes Closure as “a JavaScript library written by Java developers who clearly don’t get JavaScript.”
I love the part where Dmitry compares JavaScript’s global scope to a public toilet:
"You can’t avoid going in there, but try to limit your contact with surfaces when you do."
Even if you’re not interested in Google Closure specifically, this article still illustrates some general best-practices for writing good JavaScript.
Leave a comment