Monthly Archives: October 2012

Abstraction: The Rule Of Three

I often hear people say something like “if you need it once, build it. If you need it twice, abstract it.” People often say then in the context of the “DRY” – or Don’t Repeat Yourself – principle. In theory … Continue reading 

Posted in AntiPatterns, Javascript, Pragmatism, Principles and Patterns, Risk Management | 14 Comments

JavaScript Mixins: Beyond Simple Object Extension

Mixins are generally easy in JavaScript, though they are semantically different than what Ruby calls a Mixin which are facilitated through inheritance behind the scenes. If you need a good place to start to understand how to build mixins with … Continue reading 

Posted in ECMAScript, Javascript, Marionette, Principles and Patterns, Underscore | 12 Comments

Backbone.EventBinder: Better Event Management For Your Backbone Apps

One of my most popular blog posts in recent history is my Zombies! RUN! post where I outline the possibility and problem of memory leaks and “zombie” views and other objects in Backbone applications. There’s a good chance, in fact, … Continue reading 

Posted in Backbone, Backbone.EventBinder, Javascript, Marionette | 8 Comments