background preloader

Closure-tools

Facebook Twitter

Inheritance Patterns in JavaScript. Inheritance Patterns in JavaScript The Closure Library makes use of the pseudoclassical inheritance pattern, which is particularly compelling when used with the Closure Compiler.

Inheritance Patterns in JavaScript

Those of you who have read JavaScript: The Good Parts by Douglas Crockford may use the functional pattern for inheritance that he espouses. Crockford appears to object to the pseudoclassical pattern because: "There is no privacy; all properties are public. Changeblog: The Closure Compiler turns a Pattern into an Antipat. I have been waiting months to publish this blog post.

Changeblog: The Closure Compiler turns a Pattern into an Antipat

When I attended The Ajax Experience 2009, I saw a number of "misguided" things that people were doing with JavaScript.* Knowing that Google was in the process of open-sourcing the Closure Compiler and the Closure Library (I was working on the Compiler effort before I left), I wanted to get up and yell, "Stop -- you're all doing it wrong! " But I didn't. The Closure Library and Closure Compiler that Google released yesterday are game-changing. I have always heavily subscribed to Fred Brooks's No Silver Bullet argument, but it's possible that the Compiler will improve your web development processes by an order of magnitude. Errors that previously may not have been caught until manual testing can now be caught at compile time. Introducing Closure Tools.