JavaScript
-
What happens when you extract a function anyway?
Imagine you’ve got this snippet of code: (If this looks scary, try reading the original code from testdouble.js—I’ve made some changes to it here that make it a bit uglier) -
Abusing Promises as a Locking Mechanism
One of my favorite things about Promises in JavaScript is that they have a well-defined and narrow purpose: you ask for data and get a Promise that will give it to you asynchronously. -
Running Node on Raspberry Pi
Last Christmas I received a gift so diabolical it ruined many weekends and kept me up at night. It was a brand new Raspberry Pi Zero. The possibilities were too endless for my finite brain to handle, so I took the only obvious course of action. -
-
-
Open source spotlight: Dependable
Recently, Michael Schoonmaker, Joshua Starkey, and myself got together to brainstorm some improvements we wanted to make to an open source library called Dependable that we had used on a client project. -
-
Shape Testing with JavaScript Streams and Lodash FP
Leverage streams in node to test the shape of JSON results. Test against objects whose values change with functional programming! -
testdouble.js 2.0
The best mocking library for JavaScript testing has just gotten a whole lot better with today’s release of testdouble.js 2.0. This release irons out a few public API quirks found in the 1. -