The MongooseJS Fundamentals Screencasts


A few weeks ago, I mentioned at the bottom of one of my weekly emails, a series of my WatchMeCode screencasts that I was going to make available to those that aren’t WatchMeCode subscribers: the fundamentals of MongooseJS. The package is now available for anyone and everyone, over at my WatchMeCode site! MongooseJS Fundamentals The […]

MustBe: Authorization Plumbing For NodeJS / Express Apps


I’ve looked at a number of authorization and authentication frameworks for NodeJS in the last year. While there are a number of good authentication libraries around, most of them bill themselves as authorization, as well – which is very wrong. There just aren’t very many good authorization frameworks… maybe one well rounded framework that I […]

Building A #BADA55 Node Development Environment: The Video!


Over the weekend, I attended and spoke at the Nodevember conference in Nashville, TN. At this conference, I spoke on the subject of destroying your IDE in favor of using smaller, light-weight, flexible and composable tooling like Grunt, Grunt-Contrib-Watch and others. I had a strongly positive amount of feedback from the session, which is always […]

Calculating Standard Deviation with and Array.reduce, In JavaScript


I’ve built a handful of reports for podcasters on SignalLeaf to see how large their audience is, how the audience is listening, etc. One report that I have been wanting to build for a while, though, needs to show the standard deviation for episode listens. That is, I want to show the listens for each episode and […]

Show A Friendly Error Message If A User Specified Image URL Doesn’t Load


SignalLeaf allows a podcaster to specify an image for the podcast and/or episodes. To do this, you paste a URL to an image in to an input box. It’s a pretty standard setup, over-all.  With this being a public facing system, letting people specify any URL they want often leads to mistakes – the most […]

Decorating A Backbone.Model With Features, For A UI Component


I’m a huge fan of component based UI development – the idea of having individual functional things in a UI be an encapsulated “component”. Have a search form? That’s a component. The search results? A separate component. That menu system? You guessed it… a component. There are a lot of benefits to doing things this […]

Proper Error Handling In ExpressJS Route Handlers


For a long time now, I’ve been brute-force ugly with my error handling in my ExpressJS apps. Basically, just throw the exception after it bubbles back up to the route handler. This works. If you don’t mind the app completely blowing chunks at this point and dumping itself entirely. Of course, you could put a […]

Using The NodeJS Debugger On Code Called From Grunt (And Grunt-Jasmine-Node Specs)


I found myself needing to run a debugger on my Jasmine specs. The really fun part is that I am running these specs through the grunt-jasmine-node plugin for grunt. This means what I really need to do is run a debugger on top of grunt, and have it hit my Jasmine specs when they get around to being executed.