Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with:

Jeff White

Member since Jun 11, 2012

Recent Blog Comments By Jeff White

  • Object Calisthenics In JavaScript - An Introduction

    Posted on Jun 11, 2012 at 6:18 PM

    @Peter, The idea of avoiding ELSE is that you decouple these actions from their relative context, making them usable anywhere. So as opposed to your example you could write: function doSomethingForThisCondition(){...} function doSomethingForThatCondition(){...} Or, better yet, you could d... read more »