Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since May 21, 2011

Recent Blog Comments By Saskia

  • Branching Logic vs. Guard Logic When It Comes To Function Control Flow

    Posted on May 21, 2011 at 5:07 PM

    @Scott: Using a single exit point is not always that good, its not only about readability, its also about performance. If you know a situation should get out of the function right from the beginning, you should do so instead of letting it continue all the way down and go through all the next stateme... read more »

  • Ask Ben: Javascript Replace And Multiple Lines / Line Breaks

    Posted on May 21, 2011 at 4:40 PM

    What "Topper" said about newlines is not quite true; I also always believed it was "\r\n" and under Windows "\n", but Topper is probebly just like me from a Unix world. In Unix its "\r\n" but under Windows, it can indeed also be "\n\r". It all depend... read more »