Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Cyril Hanquez and Hugo Sombreireiro and Reto Aeberli and Steven Peeters and Guust Nieuwenhuis and Aurélien Deleusière and Damien Bruyndonckx
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Cyril Hanquez@Fitzchev ) , Hugo Sombreireiro@hsombreireiro ) , Reto Aeberli@aeberli ) , Steven Peeters@aikisteve ) , Guust Nieuwenhuis@Lagaffe ) , Aurélien Deleusière@adeleusiere ) , and Damien Bruyndonckx ( @damienbkx )

Phil DeJarnett

Member since Jul 18, 2013

Recent Blog Comments By Phil DeJarnett

  • AngularJS In Firefox: TypeError: Missing Argument 1 When Calling Function b.get()

    Posted on Jun 25, 2015 at 11:14 AM

    Oh, yeah, a very similar one of those bit me a week or so ago. I really can't believe they want to introduce an Object.prototype method called "watch" into JS. It's just going to cause issues, since it's such a common word or variable.... read more »

  • Monkey-Patching The $q Service With .fcall() In AngularJS

    Posted on Jan 30, 2015 at 10:37 AM

    For this kind of monkey-patching, you can use a decorator: https://docs.angularjs.org/api/auto/service/ $provide#decorator Something like this is a reusable module you can drop into your projects: appModule.config(['$provide', function($provide) { $provide.decorator('$q', ['$delegate', functi... read more »

  • 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 »