Adapter pattern in Scala

The adapter pattern is a structural design pattern. Its aim is to convert the interface of a class into another interface that client code expects...


Composite pattern in Scala

The composite pattern is a structural design pattern. Its aim is to allow client code to treat individual objects and collections of objects uniformly (GoF,...


AWS EC2 Swap Files

At the time of writing, the AWS EC2 t2.micro instance comes with: 1 vCPU; 6 CPU credits / hour; 1 GiB of RAM and some...


JS Promises

In JavaScript, entering callback hell or the pyramid of doom is generally considered to be a bad idea. Naming functions and keeping code shallow will...


Git Reference

Git is without a doubt my favourite VCS to date. I put this reference together when I first started using it. I still find myself...


Publishing from SBT to Maven Central

This is how I published SLF4S to Maven Central. More information can be found at the SBT docs and the Sonatype docs. The steps I...


IP Tables

IP tables are great because you can ask the OS to redirect privileged ports. This means that you can run application servers (e.g. play, spray...