Sheaf – a little library for serial Promise management

Posted by & filed under Professional.

I’ve released sheaf, a library for looping over promises in a non-concurrent fashion. It helps you treat async operations as though they were synchronous instead (but doesn’t “block”). This is useful if you want to use a series of asynchronous functions on a list of initial items, but want one series to complete before the… Read more »

Bond – a simple Promises library, available with npm

Posted by & filed under Professional.

I’ve released bond – a simple Promises/A implementation. The only reasons to use this library rather than something like node-promise are that it can be used in a browser as well as nodejs, it supports multiple arguments for promise callbacks (this is actually why I wrote it) and it has a cool name.

Simple Javascript Validator Library – Validator.js

Posted by & filed under Professional.

I had a need to do some data validation in javascript, and all the libraries I looked at seemed quite opinionated about *what* you were going to validate – i.e. form data – let alone the increase in server-side javascript in the last couple of years. My data wasn’t directly tied to a form, so… Read more »

Building Conway’s Game of Life in Javascript

Posted by & filed under Professional.

As part of an interesting exercise at work, I built an implementation of Conway’s Game Of Life in Javascript. If you haven’t come across the Game Of Life, it’s really quite interesting and worth looking at. My colleagues also made variations, including canvas-based and Web GL 3 dimensional (there was even discussion about n-dimensional, with… Read more »