I'm a software developer trying to build sustainable software using Test Driven Development. I advocate for autonomous teams, continuous learning and failing fast.
Here are four different ways to define a typed function in TypeScript. //A const strLen: (str: string) => number = str => { return str.length; } //B type StrLenType = (str: string) => number const strLen: StrLenType = str => { return str.length...
Node, JavaScript and Mocha ... ah, simpler times. I often find the configuration settings for Node, TypeScript and Jest a little confusing. Sometimes I even find that projects that I thought were working previously, curiously start working less ...
Inspired by this excellent video by devinsideyou, I thought I'd make my own list of things I would tell myself when I was starting out. It's an endless journey. There is no point racing for a destination; the destination doesn't exist. Slow down ...
I’ve been asked to contribute to a Scala project and I’m documenting my journey learning Scala and making that contribution. This is part two. Here is part 1. Test driven learning Having started with the new company, I’ve learnt that they are using S...
I thought it might be interesting to document my journey from complete Scala beginner to contributing to a real Scala project (hopefully). I will split this journey over a number of posts and hopefully it will end up in a good place. The journey begi...
TL;DR You can offload CPU intensive code using Node’s worker threads module. A demo app of the effect of this can be found here. I thought I understood Node’s async mode. I’ve used callbacks, I’ve used promises and I’ve used async/await. I’ve dealt w...