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: Gary Boyle
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Gary Boyle ( @bunnyboyler )

Jonathan

Member since Jan 31, 2012

Recent Blog Comments By Jonathan

  • Tracking Click Events Outside The Current Component In Angular 2 Beta 1

    Posted on Feb 3, 2016 at 9:16 PM

    @Ben, I guess I'm just thinking about some of the last few projects I've done without jQuery and I just never needed it. React and/or Angular take care of 99% of what we need to do. There's actually one piece of code in the custom drag/drop implementation that still uses $.closest, and after runnin... read more »

  • Tracking Click Events Outside The Current Component In Angular 2 Beta 1

    Posted on Feb 3, 2016 at 3:44 PM

    Maybe Angular's de-coupling for the browser is aimed at someday creating a cleaner version what React did with React-Native. Also, think about swapping DOM for WebGL one day... I mean that's not insignificant if you think about the kind of apps you can create in the browser with a framework like Ang... read more »

  • Rendering Image Previews Using Object URLs vs. Base64 Data URIs In AngularJS

    Posted on Dec 7, 2015 at 12:27 PM

    @Ben, Yea Plupload is helpful, I Just wish Plupload it was managed better and the licensed as MIT so we could add improvements like PUTs to S3 without it taking years. The jumbled monolithic code, the license, and the slow management I think turn off opensource contributions that could make it real... read more »

  • Why Should I Care About Immutable Data In ReactJS?

    Posted on Sep 8, 2015 at 2:52 PM

    I guess it's like that quote from that video I sent you, "simplicity is hard work!" but I agree that it's not the best thing all the time. A wise Jedi once said "Only the Sith deal in absolutes".... read more »

  • Why Should I Care About Immutable Data In ReactJS?

    Posted on Sep 8, 2015 at 11:56 AM

    It's interesting that you perceive immutable to be "overhead" whereas I always thought the main advantage of immutable objects is simplification. Especially in JS where objects are by default even more mutable than other languages. And especially on the client side of a client/server setup... read more »

  • Absolute Grid (ReactJS) Knock-Off In AngularJS

    Posted on Jun 22, 2015 at 12:25 PM

    As one my favorite developers often says... I can dig it! Nice work.... read more »

  • Don't Blindly Isolate All The Scopes In AngularJS Directives

    Posted on Jan 7, 2015 at 10:13 AM

    I think an easy way for me to think about it is if you're making an Element directive then you may need to isolate, If you're making an Attribute directive then probably not.... read more »

  • Using Isolate Scope In Directives In AngularJS

    Posted on Jun 16, 2014 at 11:04 AM

    On a previous project I used to create one-off directives with isolated scopes instead of using ng-include. I only passed to them what was needed and it completely broke scope inheritance... on purpose. To me scope inheritance always felt dangerous and risky. If you use something inherited from scop... read more »

  • Coercing Non-Truthy Values In JavaScript

    Posted on Apr 28, 2014 at 2:36 AM

    Another solution would have been to just reverse the if statements... if timeout has "then", we know it's a promise. Then we don't need to bother confusing programmers.... read more »

  • CFDirectory Filtering Uses Pipe Character For Multiple Filters (Thanks Steve Withington)

    Posted on Mar 28, 2014 at 12:18 AM

    This definitely just saved me. "*.png|*.jpg" :)... read more »

  • ColdFusion GetTempDirectory() Stops Working

    Posted on Feb 11, 2014 at 12:00 PM

    Ha, our app has been in production for 4 years and just ran into this today! Out of the blue! Guess this issue is not resolved, at least on CF9.... read more »

  • After 2013, I'm Looking Forward To 2014

    Posted on Jan 16, 2014 at 11:20 AM

    I get into this horrible recursive catch-22 cycle as well and I recently realized, for me, it all has to with sleep. Lack of sleep causes anxiety -> Anxiety causes lack of sleep How do you break that cycle? I have no freaking idea. Here are some things that have helped me: 1) Completely quit ... read more »

  • How To Store Arbitrary And Transient Attributes With Your User Data

    Posted on Jan 15, 2014 at 12:30 PM

    Oh, and if you don't want to deal with an entire map you can also use redis.hset('user:100', 'anotherVariable', 'somevalue'); that sets a specific value within a map. And var anotherVariable = redis.hget('user:100','anotherVariable'); You should see the benchmarks on this stuff, it's ... read more »

  • How To Store Arbitrary And Transient Attributes With Your User Data

    Posted on Jan 15, 2014 at 12:20 PM

    @Ben I just think clogging up your MySQL database with a key-value store might not be the best solution. This data is not exactly critical (if you were previously willing to use a cookie), probably won't be used in a relational manor, and is infinitely expandable. Redis couldn't be simpler. It s... read more »

  • How To Store Arbitrary And Transient Attributes With Your User Data

    Posted on Jan 15, 2014 at 11:45 AM

    What you guys are basically suggesting is the perfect use case for Redis. Redis is basically a super fast key-value store. A lot of backends actually use Redis to store their persistent user sessions, so it's well suited for storing persistent user data of any kind. There are a few adapters for ... read more »

  • My Experience With AngularJS - The Super-heroic JavaScript MVW Framework

    Posted on Jan 6, 2014 at 4:26 PM

    @Bob, Plenty of "real world" apps use angular very successfully. Order a sub from JimmyJohn's, you're using Angular. Load up the YouTube app on PlayStation, you're using Angular. And JS is very suitable for development. Paypal recently switched their main account overview page from pure Ja... read more »

  • Compound Transclusion Prevented In AngularJS 1.2

    Posted on Dec 9, 2013 at 4:05 PM

    by the way, I bet if you rolled all that up into a PR, they'd accept it since they've done so for ng-repeat and ngif.... read more »

  • Compound Transclusion Prevented In AngularJS 1.2

    Posted on Dec 9, 2013 at 3:40 PM

    Oh, and you'll probably have to add the same logic to bnSwitch that ngif got since nginclude changed to manually cleanup old elements. See how it was done on ngif here: https://github.com/btford/angular.js/commit/4c390161e4486c7a00177ceb627d42e58c5ab190 Not an ideal solution, but probably a 30 mi... read more »

  • Compound Transclusion Prevented In AngularJS 1.2

    Posted on Dec 9, 2013 at 3:37 PM

    Lucky for you there's an easy work-around. The Angular team knows about the problem and they've included workarounds to fix this issue with ng-repeat+ng-include and ngif+nginclude but they have not added a work-around for ngswitch+ng-include. To get past the assert, they add a special parameter to ... read more »

  • My Experience With AngularJS - The Super-heroic JavaScript MVW Framework

    Posted on Jan 7, 2013 at 10:38 AM

    @Ben The only issues I've found with mobile are that you basically need to replace the ng-click directive with ng-tap. Ng-tap is a custom directive but there's a few examples out there if you google. the ng-tap listens for touch events and has a workaround for the 300ms delay. If you want animati... read more »