Build Applications The Way Google Does: Closure Tools

Closure Tools is set of opensource (release info) developer tools by Google which are used while building Gmail, Google Maps, Google Docs  & many others.

The tools include a JavaScript compiler, library & templating system.

Closure Compiler

JavaScript Compiler

It compiles JavaScript into compact, high-performance code. The compiler removes dead code and rewrites and minimizes what's left so that it downloads and runs quickly.

It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

The compiler also offers a Firebug extension, named Inspector, for better debugging.

Closure Library

It is a broad, well-tested, modular, & cross-browser JavaScript library.

Only what you need can be pulled from a large set of reusable UI widgets, controls, lower-level utilities for DOM manipulation, server communication, animation, data structures, unit testing, rich-text editing, & more.

Closure Templates

They simplifty the task of dynamically generating HTML.

In contrast to traditional templating systems, in which you use one big template per page, you can think of Closure Templates as small components that you compose to form your user interface.

  1. Reply BloggingDeveloper November 9, 2009 at 8:28 AM

    Closure Compiler – the javascript compiler, is really working well. The strongest part of the Closure Compiler is that it does not only remove whitespace but also it rewrites Javascript Code to make it smaller. It also optimizes your Javascript code to perform better. I compared the performance of YUI Compressor and Closure Compiler. Results can be found at:

  2. Reply Concerned Coder November 13, 2009 at 4:36 AM

    Coders beware – just because Closure shares the Google moniker, it doesn’t mean it’s the javascript library of the century…. Read this for a few reasons why you may want to think twice before adopting the library:

Leave a reply