Writing

Blog Posts

Mocking Angular’s $http Promise return type

The Angular $http service provides an easy way to interact with an API endpoint. If you want to query some data, you can simply do this: var request = $http.get('/api/items'); request.success(function (data) { console.log('I have data', data); }); The request object above is an Angular HTTP promise (ng.IHttpPromise…

Your Developers are Miserable and Are Going to Quit

Dear Software Development Managers, I've been lucky enough to work with a fair few development teams over the years, both here and in Canada (you'd have to ask them if that feeling is reciprocated). As well as getting involved with some good projects and taking part in a multitude of technical discussions, I've also…

Create a Grunt meta-runner in TeamCity

As much as all the cool kids are now using Gulp, I'm still using Grunt for a few few automated tasks. In our current project, we're using it to compress all of our JS in the project, run the Jasmine tests through Karma, and generate test code coverage reports. As well as doing this locally, we need to be able to…

Create a Scratch Branch in Git

Sometimes it gets to 4:59 on a Friday and you've got a bunch of files you've been mucking around with but don't really want to commit. This could be because you're just using throwaway code or because you've made changes to existing files that you don't want to break. In these circumstances, you have a few…

Add Visual Studio 2013 Command Line Tools to Cmder

Cmder is an excellent console emulator and my go-to tool for Git on Windows. Every now and again I need to dip into the Visual Studio Command Tools to do something like manually run MSBuild, so it’s handy (and easy) to have this set up as a task in Cmder. 1. Manage Tasks Click the plus icon towards the bottom right of…