October 25, 2011
TDD and Simplicity
Oh, I didn’t write tests for that. It’s too hard to test.
Heard that before? I’ve made this argument myself in the past, but it’s only recently that I’ve figured out precisely why it’s a stupid argument.
On the surface, and in context, it can seem reasonable. The code in question is often either interacting with the OS via system calls, or is involved in multi-process coordination, os else involves fiddly thread interaction.
Read more