Unit testing is a lot like going to the gym
My first answer on Stack Overflow. Possibly too metaphorical.
Tags: unit testing
This entry was posted
on Monday, September 15th, 2008 at 11:22 pm and is filed under Nerdery.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
I liked your response. Unfortunately, I can’t vote it up because I lack “15 reputation”, whatever that is ;-)
Like going to the gym, peer pressure helps. It’s hard to write unit tests if you’re the only person who ever looks at your code. But if you know someone else is going to be mucking around with it, it gives you some insurance that they won’t completely break all your lovely features.
(I’m not saying you shouldn’t do it if you’re working alone, just that it’s harder to motivate yourself.)