NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
I mostly agree. (Score:2, Interesting)
With TDD you are holding your tests to the same standard as your code; tests should be good enough for right now. Keep it simple so you can change it easily. The original, fragile, test was Good Enough up 'til now. The time saved by not making it generic meant more stuff that added direct customer value could get done, and that's a Good Thing.
However, rape and paste functions are Evil, Bad and Wrong and should be excised at every possible opportunity as part of your general refactoring. Accept the blame for letting it happen, fix it, and move on.
Reply to This