Validating schemas with Mongoose

For the past couple of weeks I’ve been working on a NodeJS application. One of the most important tasks was to validate the data being written to the Mongo database. Thankfully Mongoose was there to help.

Continue reading…

Kick-starting a front-end project

When starting a new project, there are a number of things I do that are the same every time. For example, I use gulp to run a bunch of tasks on my files, and I use a similar directory structure every time. Setting all this up for every project would be a huge time sink, and is quite frankly tedious.

Continue reading…

Learning TDD with fizzbuzz

Testing JavaScript is something all front-end developers should be doing, although for those like myself who come from a design background rather than from programming, it can be difficult to know where to start.

Continue reading…

Building a grid using Sass mixins

Whilst on a train yesterday I had some time to spare, so I decided to make my own grid system. To see all the code at once check out the gist, otherwise read on to see how I put it together.

Continue reading…

The Boy Scout Rule

Keeping a clean codebase is an ongoing process. We try our best to do things well to begin with, but we’re always going to come across things that we could be improved.

Continue reading…