Programming Closure
Resources for Closure Developers
Here are some of the best ways to learn about Closure:
-
Read Closure: The Definitive Guide
More than just a cookbook, this comprehensive how-to guide will teach you what makes Closure different from other JavaScript toolkits. Designed to support sophisticated web applications such as Gmail and Google Maps, Closure has a focus on performance and software maintenance that is unmatched by other contemporary offerings, such as jQuery. Closure: The Definitive Guide starts out by introducing the design goals and principles that motivate the toolkit, so you will quickly discover what makes Closure the ideal choice when building a rich web application. Rest assured that there are plenty of code samples to help you make the transition from theory to practice. -
Leverage Closure Lite
If you are coming from a jQuery background, you are probably accustomed to developing by including a single<script>tag that pulls in jQuery and then adding additional blocks of JavaScript code that leverage it. Closure Lite provides an analogous monolithic file, but with the core of the Closure Library API. This makes it possible to start experimenting with Closure in a way that you find familiar before you try to tackle the entire set of tools. -
Download plovr
To get the most out of Closure, the three major components of the toolkit should be used together: Library, Compiler, and Templates. Although each is a separate project on Google Code, an independent, open-source build tool named plovr unifies all of the tools with a single download and unified configuration file. More importantly, plovr makes it easy to leverage advanced features of Closure via a JSON config file, whereas normally such features would only be available by writing against the Java API of some of the Closure Tools. It also improves JavaScript development by displaying JavaScript compilation errors in the browser and dividing large files of compiled JavaScript code into modules to improve startup times and reduce bandwidth costs. -
Join the Discussion Groups
There is a lot of high-quality discussion in the Google Groups for the various tools, as the Google engineers responsible for building and maintaining them are active participants:
You can also keep up by subscribing to the Closure Tools Blog and by following closuretools on Twitter.Tool Docs Group Google Code Project API Closure Library Overview closure-library-discuss closure-library API Demos Closure Templates Overview closure-templates-discuss closure-templates Javadoc Closure Compiler Overview closure-compiler-discuss closure-compiler Javadoc Closure Linter How-To closure-linter-discuss closure-linter Closure Inspector How-To closure-inspector