Comments on: Unit testing is a lot like going to the gym http://www.benzado.com/blog/post/30/unit-testing-is-a-lot-like-going-to-the-gym A professional's personal blog. Sun, 30 Jan 2011 01:28:54 +0000 hourly 1 http://wordpress.org/?v=3.1.1 By: Michael Higgins http://www.benzado.com/blog/post/30/unit-testing-is-a-lot-like-going-to-the-gym/comment-page-1#comment-4 Michael Higgins Tue, 18 Nov 2008 20:33:30 +0000 http://www.benzado.com/blog/?p=30#comment-4 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.) 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.)

]]>