Something I'm bad at
By terryh on Oct 19, 2005
I've re-discovered something I am bad at. I'm slightly ashamed to admit it, but I am very bad at testing my own code. To be specific, I'm bad at spotting when fixing one problem causes or re-introduces a different one. I already know the fix for this. It is quite simple: write the unit tests as you go along, and make sure they all still pass after you've added a new bit. I let myself slip away from doing this, because I was feeling some deadline pressure. But I just proved to myself yet again that writing tests doesn't cost you time, it saves you time.
Well, lesson learned — properly this time, I hope.
Tag: Unit Testing