Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Virginia Klebau
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Virginia Klebau

Edward

Member since Dec 11, 2008

Recent Blog Comments By Edward

  • Hello World: Comparing ReactJS And AngularJS

    Posted on Oct 25, 2015 at 10:52 PM

    @Ben, I've trying to get my head wrapped around React and I don't really care for the component style yet... Maybe I just need to be a bit more open-minded. @Greg, That demo link has an extraneous period in the link but seeing that I'm quite familiar with Spring, I'm definitely going to check i... read more »

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 4, 2015 at 10:32 AM

    @Ben... I learned a lot of terminology when studying Java... In most statically typed langauges you're required to understand modifiers... dynamic langs dont really necessitate that.... read more »

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 4, 2015 at 9:22 AM

    @EricElliot has a pretty awesome post on immutability in JavaScript I'm thinking you'd really dig... ;) https://medium.com/javascript-scene/the-dao-of-immutability-9f91a70c88cd... read more »

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 4, 2015 at 9:17 AM

    @Ben... :) NP ... I hope I didn't come across as a critique man... I was just confused by the 'static' reference... I believe you were trying to express was an immutable variable, which, has a final, constant value ~ "This expression must have a constant value." ~ sorry for the long wind ;... read more »

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 4, 2015 at 6:51 AM

    @Adam... Ya... Java has the same constraints on lambda expressions ... the variables have to be 'final or effectively final' ~ immutable.... read more »

  • Switch Cases Do Not Have To Be Static In JavaScript

    Posted on Aug 3, 2015 at 9:44 PM

    Pardon me but did you mean final or constant variables? I don't think static is correct in this context. The static keyword means that something (a field, method or nested class) is related to the type rather than any particular instance of the type.... read more »

  • Error Object Properties Are Not Iterable / Enumrable In Node.js

    Posted on Jul 28, 2015 at 5:43 AM

    I've never cared much for dealing with JavaScript's prototypal inheritance chain for native objects... For instance, to do something simple like extending Error for argument validation, a lot of imperative, boilerplate code is required... Here's a naive implementation... Let's say we want to exte... read more »

  • ColdFusion Image Resize Stuck At sun.java2d.cmm.kcms.CMM.cmmColorConvert With Massive CPU Usage

    Posted on Apr 30, 2015 at 9:38 AM

    CF is using a very old implementation... check out https://github.com/thebuzzmedia/imgscalr it's really good...... read more »

  • Finding Shallow HTML Comment Nodes In The DOM Using TreeWalker

    Posted on Dec 13, 2014 at 7:53 PM

    @Ben... Moreover... TreeWalker is very fast... Here's a jsperf comparing jQuery's remove to a native implementation... The TreeWalker implementation is much faster... http://jsperf.com/treewalker-remove... read more »

  • Finding Shallow HTML Comment Nodes In The DOM Using TreeWalker

    Posted on Dec 13, 2014 at 4:08 PM

    @Ben.. Now this is some great stuff .... Pure JS DOM traversal feels a bit cleaner than using a library... (a lot more boilerplate... but cool to do ...)... read more »

  • Canceling A Promise In AngularJS

    Posted on Dec 1, 2014 at 6:25 PM

    @Ben It seems natural to have service layer functionality to control promises ... Transactional states come to mind as a use case... for instance if a transaction fails cancel 'scheduled' promises... etc...... read more »

  • The User Experience (UX) Of Custom Scrollbars

    Posted on Aug 27, 2014 at 11:59 AM

    @Ben ... Yeah, I don't have a lot of experience developing with ExtJS professionally either... I've worked with a few teams that used it in production and the results were quite impressive. Of course the developer we had leading the front-end design won awards for her work in Sencha Touch so YMMV ... read more »

  • The User Experience (UX) Of Custom Scrollbars

    Posted on Aug 27, 2014 at 12:36 AM

    @Ben ... If you're working on serious, enterprise quality web apps, ExtJS is the best on the block for desktop and tablet apps...... read more »

  • Creating A Reusable Timer In AngularJS

    Posted on Aug 25, 2014 at 2:36 PM

    @Ben ... Nice demo... I've recently been dabbling with Angular and coming from working with ColdSpring and Spring I'm quite at home with the IoC pattern Angular uses... leaving object creation up to the framework on ... Hollywood yada yada... Great share ...... read more »

  • Chrome Dev Tools "Live Update" In The JavaScript Console Is Confusing

    Posted on Aug 20, 2014 at 8:40 PM

    @Ben ... Not sure if this was fixed or not ... but did you 'really' have an element with the ID 'title' or did you inadvertently use the wrong function to reference the element ? // Eh? var title = document.getElementById( "title" ); // ? var title = document.getElementsByTagName(&quo... read more »

  • Creating Multiline Descriptions With JavaDocs And CFScript In ColdFusion

    Posted on May 28, 2014 at 12:48 PM

    @Ray... 100%. IMHO... Documentation should only document - nothing else. SRP.... read more »

  • Creating Multiline Descriptions With JavaDocs And CFScript In ColdFusion

    Posted on May 28, 2014 at 12:20 PM

    Somewhere, someone once said, "Good code is self documenting... " I think this is one of the better features the CF team implemented... I don't know anyone who 'disagrees' with having well documented code... JavaDoc is by far one of my favorite features of Java... and ColdFusion...... read more »

  • CFFinally Will Execute Even If CFCatch Throws An Error In ColdFusion

    Posted on May 20, 2014 at 1:47 AM

    @WMW @Ben ... I couldn't figure out a good use case for finally until I ran into a great example for handling JMS connections ... ( JMS 1.0 has a lot of boilerplate connection code... ) Example... https://gist.github.com/EdwardBeckett/af9bfeaddb87a17d786d... read more »

  • Aborting An AJAX Request In AngularJS Using httpi

    Posted on May 3, 2014 at 4:52 PM

    @Ben ... I was perusing the Mozilla docs for Mark-and-Sweep GC after reading your entry and it seems apropos to null out resource intensive objects... I was recently working on a legacy enterprise app using JMS 1.1 where the connection factories were explicitly nulled out in a finally block... Bu... read more »

  • Aborting An AJAX Request In AngularJS Using httpi

    Posted on May 3, 2014 at 3:26 PM

    @Ben, I'm seeing a few items here that are quite interesting. Though I'm not all too familiar with Angular.js ... I can't help but notice references to DAO repositories, explicit GC and future promises... concepts I became acquainted working with Spring and JPA. Seeing these features in JS is pr... read more »