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 2008 (Washington, D.C.) with:

Phil DeJarnett

Member since Jul 18, 2013

Recent Blog Comments By Phil DeJarnett

  • Accidentally Defining A Directive Twice In AngularJS

    Posted on Jan 6, 2015 at 8:21 PM

    Oh, and I should have mentioned, dependencies are mostly wired in closest to where they are used, so there's a `foo.routes` which has all the top-level routes, then `foo.routes.people` might depend on `foo.routes.people.person`, etc.... read more »

  • Accidentally Defining A Directive Twice In AngularJS

    Posted on Jan 6, 2015 at 8:13 PM

    @Ben So, I was thinking about it more: having one module per file _won't_ fix the issue above, because you are allowed to completely overwrite a module in Angular (useful for testing, kinda bad in code, though). So it would actually have continued to hide your duplicate file (but you would not hav... read more »

  • Accidentally Defining A Directive Twice In AngularJS

    Posted on Dec 24, 2014 at 10:21 PM

    Something I've taken up is the idea that every file must have a module definition, and every module should be used in only one file. Basically this means a unique module per file. (This excludes a shared templates module.) This has several benefits: 1. The error above would have been spotted eve... read more »

  • The User Experience (UX) And Cognitive Dissonance Of Forms

    Posted on Apr 3, 2014 at 10:54 AM

    Something that ties the two elements together-the form and the story-is that every piece of information you require should be backed by the story. This helps immensely with two seemingly opposing issues: 1. The user doesn't want to provide any more information than necessary to get the job done. ... read more »

  • User-Friendly Sort Of Alpha-Numeric Data In JavaScript

    Posted on Jul 18, 2013 at 9:42 PM

    @Ben, Hope you don't mind, I took your idea and ran with it. I created a reusable module, and added date parsing into it, too. The source code is much better commented than the jsFiddle was. I wrote up a blog about it here: http://blog.overzealous.com/post/55829457993/natural-sorting-within-an... read more »

  • User-Friendly Sort Of Alpha-Numeric Data In JavaScript

    Posted on Jul 18, 2013 at 2:40 PM

    More thoughts: I think this might be really useful as a global function that can be applied to orderBy as desired, so here's what I came up with: jsFiddle: http://jsfiddle.net/TyHQj/ The function natural() is added to the $rootScope - obviously this may or may not work for everyone, but it's an... read more »

  • User-Friendly Sort Of Alpha-Numeric Data In JavaScript

    Posted on Jul 18, 2013 at 11:35 AM

    Oops, I meant | orderBy:normalize , and I forgot the return keyword in my function. Derp.... read more »

  • User-Friendly Sort Of Alpha-Numeric Data In JavaScript

    Posted on Jul 18, 2013 at 11:30 AM

    That's a great trick. I think it might be more MVC-ish to use orderBy:normalize and add $scope.normalize = function(item) { normalizeMixedDataValue(item.name); }; , thereby putting the sorting into the view.... read more »