"be consistent" | |
PerlMonks |
Re: Does anybody write tests first?by Your Mother (Archbishop) |
on Feb 22, 2008 at 03:56 UTC ( [id://669458]=note: print w/replies, xml ) | Need Help?? |
I've done it a few times. It takes a lot of self-discipline but it is very rewarding. Besides having the tests going forward to maintain code health, the mere act of writing tests tends to expose use cases, UI, and design issues you weren't considering or were coming from bad assumptions. It appears to take more time up front but the time it saves in focusing you on "fixing" the tests with new code and not refactoring things you finished as a half-baked prototype can be immense.
In Section
Seekers of Perl Wisdom
|
|