I have to admit that I couldn’t remember who Michael Bolin was when he first contacted me to review Closure: The Definitive Guide. The embarrassment turned worse when he reminded me that he interviewed me at Google almost five years ago, before I joined Yahoo!. Having had the chance since then to grab lunch with Michael, the somewhat blurry events of that day in 2006 came flashing back – especially because he had done the “lunchtime interview” portion of my day.
The book is incredibly well-written considering the daunting task of documenting each piece of the Closure ecosystem. Michael does an admirable job of not just explaining what different pieces do, but also why they do it that way. Every time I found myself saying, “hmm, I wonder why they did that,” the next couple of paragraphs were spent explaining the design decisions and how they work together with the overriding design of Closure. It’s not hard to see that Google engineers spent a lot of time thinking through every little piece of Closure, and Michael consistently dropping in details of these decisions is, in my opinion, the real gold of this book. You really get a sense for what it’s like to build a massive, fine-tuned web application from the perspective of Google. While you may or may not agree with the approach, it’s very nice to actually read about the decisions rather than just, “accept this, we know what we’re doing.”
That being said, I did walk away from the book feeling that the entire Closure ecosystem is too complex for me to start using. The ability to quickly get up and running just isn’t there, and that’s okay, because Closure wasn’t intended for small web sites. However, the vast amount of knowledge you need to keep in your brain to use Closure to its peak is quite overwhelming. Michael says that you don’t need to use all of the pieces of Closure if you don’t want to, and that’s absolutely true. However, the value of the whole system used together is clearly much greater than the sum of its parts. So while I could see people using the Closure Compiler without using the Closure Library, I’d be shocked to find people doing the opposite.
I commend Michael for taking an extremely complex project and writing about it so thoughtfully and thoroughly. If you want to learn about Closure and the way that Google thinks about web application development, this is certainly an excellent book. However, I don’t think the book will pull people away from their current set of tools