A Minute With Brendan

Closure Versus Prototypal Pattern Deathmatch
Wed Feb 16 2011 |
|

Brendan gets a special request from the audience about which is more optimized and why, the Closure pattern espoused by Douglas Crockford, OR the standard JavaScript Prototypal inheritance pattern. A longer (or normal depending on perspective) and more nerdy dive than previous episodes, so prepare to have your mind blown away. Brendan discusses how the compiler can (and does) automatic optimization and caching on the prototypal pattern that is otherwise hard or complex, but more importantly not done, for the closure pattern. 10 minutes in all, but well worth your time - we promise.

blog comments powered by Disqus