Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Steve 'Cutter' Blades
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Steve 'Cutter' Blades@cutterbl )

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 »