Skip to content

Comment on Closure: The world's most misunderstood JavaScript library

Comments

I like the Closure compiler but not its templating library or its dom library. The dom library is not abstract enough (you have to explicitly create dom elements) and I generate all my js files via my own php based templating library that is a lot more powerful and concise.

A great combination for the front end through is CoffeeScript + the Closure compiler + jQuery (or your favorite dom library).

I am not sold on the templating library either. But the Closure library is quite extensive and abstract. It contains tons of useful (and well designed) UI components and compares favorably to something like jQuery UI. On the other hand there is a higher barrier of entry due to the lack of adequate documentation.

What templating library do you recommend?

Well, I am using my own templating library, normal-template: http://github.com/gmosx/normal-template

It's similar to json-templates but with a few extra tricks. You can find some documentation here: http://www.nitrojs.org/normal-template

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.