Testing · Archive

2025

  1. How I Write Tests I tend to like writing tests more than the average Joe 🥁. For me, there’s something really satisfying about using a test to figure out how I want an API surface to feel, iterating on the failing test until the error message is exactly what I want to see in the test log if the feature breaks, then implementing the feature and seeing the test pass as expected, followed by refining both the implementation and test code to a state that I’d be happy to revisit/reread in 2 years.
  2. Solving a Tricky Email Invoicing Bug How I traversed library code, programming language implementations, and operating system updates to solve a critical email invoicing issue.

2023

  1. Unit Tests: How to Fix a Lamp Without Bulldozing Your Hometown A Short Story of Debugging Desperation In 97 Things Every Programmer Should Know, Thomas Guest recounts a moment when he had identified a problematic piece of code in a large application, but had lost hours in recompilation time trying to experiment with the erring edge case.

Years