Deep Thoughts

Friday, September 29, 2006

Good tests => Good Teeth



A bunch of us at work are reading Kent Beck's Test-Driven Development. From today's reading, my biggest takeaway was "To keep your teeth healthy, retroactively test before refactoring"!

Confused? Here's his explanation: "Write the tests you wish you had. If you don't, you will eventually break something while refactoring. Then you'll get bad feelings about refactoring and stop doing it so much. Then your design will deteriorate. You'll be fired. Your dog will leave you (Huh?). You will stop paying attention to your nutrition. Your teeth will go bad. So, to keep your teeth healthy, retroactively test before refactoring."

Hope this will motivate all you software developers to write more tests ;)

1 Comments:

  • You developers are SOOO cool.
    Except when you yell at me for testing in a production environment... like, what's the big deal?!
    :-)

    By Blogger JustRun, at 5:48 PM  

Post a Comment

<< Home