Beginners guide to testing NodeJS Servers

The following is a gentle introduction into the world of unit testing NodeJS servers. We'll look at the absolute basics here - so if you've never written unit tests before & you've been meaning to learn how - then this is the blog post for you. Setup I encourage you…

BrowserSync - it's getting a UI

The early adoption of my open source project BrowserSync has been really inspiring. The idea that people around the world are starting to use this little tool that I've been hacking on in my spare time is mind-blowing. As it becomes more popular, more bugs are reported - these are…

GulpJS + SASS + BrowserSync ftw

Being the new-kid-on-the-block, GulpJS is getting plently of attention lately. Instead of contributing to the pool of opinion-pieces out there though, I thought I'd walk you through setting it up with a really nice little workflow including SASS for CSS along with my open-source project, BrowserSync.io. The end result…

Testing Angular Directives with Isolated Scope

Passing objects into a directive's scope is an extremely useful practice as it lets you focus on the job of the directive without worrying about the 'outside world'. Specifying a scope property on a directive isolates it from any parent scopes & when you need access to anything from a…

Making Promises with Javascript.

Promises are a great way to make asynchronous programming easier to write, read & understand. Let's first look at a common pattern that occurs in Javascript programming. Here we are defining a function that will set the value of data to an array after 2 seconds - this is to…

Function Composition in Javascript.

Sounds scary? It isn't really. Function composition is simply the process of combining two or more existing functions to create a brand new one specific to your needs. Think of it as a function factory. I use Lo-dash in this post, to follow along, just kick up a JSBin with…