Rob Wettlaufer
Member since Sep 25, 2015
- Profile: /members/12842-rob-wettlaufer.htm
- Comments: 5
Recent Blog Comments By Rob Wettlaufer
-
Breaking Out Of A Promise Chain In AngularJS
Posted on Jan 22, 2016 at 10:57 PM
Yeah, using the .catch(MyCustomError, MyCustomErrorHandler) syntax with BlueBird you can basically set 'exit points' so to speak within the promise chains, almost like a 'break' or even a 'goto'. You do have to make sure you are persisting the state you'll need to properly handle the promise rejecti... read more »
-
The ColdFusion 10 invoke() Function Works With Most Java Objects
Posted on Dec 31, 2015 at 8:17 PM
hah, that's actually pretty cool... read more »
-
Var For Life - Why Let And Const Don't Interest Me In JavaScript
Posted on Nov 11, 2015 at 10:02 PM
I'll be honest with you... I'm not sure how much I like the const/let over var situation either. For certain things that we know are constants, like environment variables or something, I like the idea of being able to prefix them with a `const` to show beyond a shadow of a doubt that they won't be c... read more »
-
You Can Use require() To Load JSON (JavaScript Object Notation) Files In Node.js
Posted on Sep 25, 2015 at 10:06 PM
I didn't know this and used it the other day when I was testing stuff out in the REPL and had a .json file I wanted to walk through. Definitely saves a few steps requiring the .json file as opposed to requiring fs and reading the file in, especially when messing around in the REPL... read more »
-
Internet Explorer Aborts Images With The Wrong Mime-Type
Posted on Sep 25, 2015 at 10:02 PM
*swish* - this definitely saved me some time today :)... read more »