squares Created with Sketch.

Service Workers

An introduction to service workers Put simply a service worker is a script that runs in the browser. They can intercept network traffic, send push notifications and perform background syncs. If that was a bit of a blur don’t worry, we’ll take a step back and take a look at each in...

Async/Await

Recognising the advantages and disadvantages of async/await requires an understanding of callbacks and promises. Before we review these lets first remind ourselves of the problem they solve: Asynchrony. Javascript is a blocking, synchronous single threaded language. This essentially means it can only perform one...

Tips and tricks for vim

In todays blog post I would like to take the opportunity to share some knowledge I have gained with vim. In particular with customising vim to make it more user friendly. Out of the box the default configuration wraps long lines across multiple lines and line numbers aren't shown. Resolving these two things...

An Introduction To State

Today I want to try something slightly different. Over the last few months I have found myself working on a handful of legacy angularjs applications. These applications are typically single-page applications, use some form of database to persist the data and  contain very little in terms of documentation. In this...