flâneur — a map of the web's best reading

Fighting Distraction With Unit Tests | Matthew C Dev

matthewc.dev · 452 words · saved by 1 readers

While I won’t go so far as to diagnose myself with ADD without consulting a doctor, those who know me know I can be distracted quite easily. So recently, I decided to do something a little different with a personal project I started a few weeks ago (link to come). I wrote unit tests. That may seem rather uninspired, but I’ve always poo-pood the idea of test-driven development (TDD), as it seems wild to me to write a test for something that you don’t know what it needs to do yet.

While I won't go so far as to diagnose myself with ADD without consulting a doctor, those who know me know I can be distracted quite easily. So recently, I decided to do something a little different with a personal project I started a few weeks ago (link to come). I wrote unit tests. That may seem rather uninspired, but I've always poo-pood the idea of test-driven development (TDD), as it seems wild to me to write a test for something that you don't know what it needs to do yet. It works great when there's a well-defined spec or an existing hole that you need to fit. TDD shines when refactorin

Explore this link on the map →

saved by

related reading