Wednesday, April 07, 2010

Defensive programming, the real reason

For better or for worse I am very possessive of code that I write. When people break my code, I have to take deep breaths in order to not insult them.

Of course this has helped me better understand the purpose of tests like solo programming never could have. It's made me realize that team programming is a war. If I didn't build my tests well enough, such that someone else is able to break my code, that's my fault, not his.

If you really want to impose your will upon the codebase, write tests.

No comments: