Skip to content

Writing

Blog Posts

Thanks for the memories, eh

It’s amazing how quickly four months can pass. It seems like no time at all since I had to don the heavy coat, gloves and scarf to head in to the IBI Group Toronto office for orientation but, here I am now at the last day of my secondment and only a few days before leaving the country. To be honest, I'm absolutely…

Simple JavaScript Method Chaining

Method chaining is a way to return an object from a method call that allows for further methods to be called. It’s easier to see than to describe. Instead of this: var people = helper.getPeople(); var bob = people.find('bob'); var email = bob.getEmail(); You could do this: var email =…

Starting to write JavaScript that doesn't suck

A couple of people I've spoken to in the past few days have made comments about how much they hate JavaScript and how bad it is as a programming language. I'd agree that this is true for the code that people new to the language can sometimes create. Take this wrapper for the Google Maps API: var map; function…

Certa Cito

So, my work does a weekly internal newsletter where they include a staff profile. This week it was my turn. The questions towards the end were submitted by colleagues. You'll probably be able to tell where the standard questions end and those begin. Name: Kevin Wilson Position in Company: Consultant / .NET Developer…

Installing ICS on Samsung Galaxy S2

So, here’s the process as I go: Pre-Launch Back up stuff I don't want to lose on my phone (photos, call records etc.) Take screenshots of all data connection info and home screen layout. Charge phone completely. Update Time Launch Kies. It crashes. Launch Kies. It tells me a new version is available and asks me if…

Hateful Code

I wonder if the person who wrote this had any idea of how much trouble it'd eventually cause? catch (Exception ex) { // TODO: log? }

Unit Testing Database Access

The goal of unit testing is to create a small, self-contained tests for a piece of code that tests the functionality of that piece of code in isolation from the rest of the system. Put more simply, it should test the code you want to test and nothing more. This can be a little tricky when dealing with writing tests…