Blogspot - closuretools.blogspot.com - Closure Tools Blog

Latest News:

Which Compilation Level is Right for Me? 26 Sep 2012 | 07:29 pm

Pinkify

Subtyping Functions Without Poking Your Eyes Out 2 Jun 2012 | 05:12 am

Pop quiz: suppose you see two Closure Compiler type annotations. A) {function(Object)} B) {function(Array)} Which one is the subtype? Telling you that the right answer is (A) feels a lot like drivi...

Type-checking Tips 25 Feb 2012 | 07:02 am

Closure Compiler’s type language is a bit complicated. It has unions (“variable x can be A or B”), structural functions (“variable x is a function that returns a number”), and record types (“variable ...

Introducing Closure Stylesheets 13 Nov 2011 | 12:58 pm

(CSS is for programming, not for pasting) When the Closure Tools were first released a little over two years ago, they gave web developers the ability to organize and optimize their JavaScript and HT...

A Property By Any Other Name, Part 3 26 Jan 2011 | 11:15 am

This is the last in a series of blog posts on how Closure Compiler decides what properties. Part 1 was about the --compilation_level=ADVANCED_OPTIMIZATIONS flag and part 2 was about renaming policies ...

A Property By Any Other Name, Part 2 22 Jan 2011 | 10:52 am

This is the second in a series of blog posts on how Closure Compiler decides what properties to rename with the --compilation_level=ADVANCED_OPTIMIZATIONS flag. Part 1 talks about the current algorith...

A Property By Any Other Name, Part 1 19 Jan 2011 | 10:47 am

When you use Closure Compiler's --compilation_level=ADVANCED_OPTIMIZATIONS flag, the compiler will try to rename properties on your objects. For example, it may rename x.longPropertyName to x.a. Beca...

This “this” is Your This 13 Oct 2010 | 09:04 am

In a past blog post, we talked about how Closure Compiler makes it easier to share common JavaScript by ensuring that everybody declares what variables they own. Global variable uniqueness is somethi...

Introducing Closure Linter 1 Sep 2010 | 10:45 am

When collaborating with lots of engineers as we do here at Google, it’s important to keep a consistent coding style. To this end, we recently open sourced the Google JavaScript Style Guide. Today we’...

This Var is My Var 31 Aug 2010 | 08:34 am

The Closure Compiler you know is very different than the Closure Compiler that’s familiar to Google engineers. The defaults at Google are much stricter. It forbids duplicate global variable declaratio...

Recently parsed news:

Recent searches: