Google Closure, And Brando’s Last Line In ‘Apocalypse Now’

Dmitry Baranovskiy is not impressed. Via Sitepoint and Kevin Yank, we get this scathing review of Google Closure tools from the creator of the Raphaël and gRaphaël JavaScript libraries. His contention is that Closure, Google’s new javascript library, was written by Java developers who don’t really ‘get’ Javascript, and he gives us plenty of examples. Memory leaks, data-type confusion, API-design indictment, it’s all here.
Well, if you put the wrong people on a project you’ll get suboptimal results. To the extent that Baranovskiy arguments have merit, this looks like a failure within Google to really check what they are producing before they release. And that would be a big surprise.

If there’s one thing we expect from Google it’s a focus on performance. Heck, Google released its own browser, Google Chrome, primarily to take JavaScript performance to the next level!
Seeing code like this, one has to wonder if Google could have achieved the same thing by teaching its engineers to write better JavaScript code.

Zen-To-Done