Hackle's blog
between the abstractions we want and the abstractions we get.

Strong Code

Strong Code: designing mission-critical applications

"Strong Code" is the name for my book and my workshop. Below is an introduction.

Buy the book on Leanpub

While most software applications need to work reasonably well, a mission-critical application must not go wrong, or the consequences can be costly.

Making software work or making it fast is becoming cheaper and cheaper. Making it right becomes harder. As code grows in volume and complexity, so does the challenge of keeping it correct. How do we prevent it from spiralling out of control?

One answer is to add: more checks, tests, and assertions; more processes, tools, and abstractions; more people, time, and money. And inevitably, more anxiety about what might break.

Strong Code provides a different answer: to remove. Reject ideas that are flexible, powerful, or convenient at the expense of soundness. Embrace simplicity and rigour. Make immutability the default, bring control flow and data flow together, reject mutation. Use expressive types as evidence, design problems out of existence (or into the "negative space"), rather than piling safeguards on top of them. Model and handle errors explicitly, isolate side effects to maximise local reasoning.

This is an ideas book, yet full of concrete code examples across several mainstream programming languages. It's opinionated. It challenges established practices, passes judgement, and provides demonstrably stronger alternatives for the construction of mission-critical applications.

Buy the book on Leanpub

Strong Code