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.
Merciless Refactoring (Score:2)
Yes, but how merciless will you be?
A good friend of mine, let's call him "George", would get deeply involved in some code he was writing, and would occasionally get tired of chasing the odd bug. His response was the famous three step process:
Now, George wasn't cavilie
Re:Merciless Refactoring (Score:1)
As is normal, I try to commit after every (write-test; code-code; pass-test) cycle, and I try to keep those cycles smallish. I refuse to leave my CVS checked out overnight, and delete it if it isn't committed. Some people think this is bizarre enough, but I've found that going further is better: frequently, the next morning, I realize that the reason I couldn't get that last hour's work checked in is because the previous seven hours were conspiring to make it more difficult than it had to be. I check out 24 hours earlier, and start over. Re-doing eight hours of work usually takes about an hour, and leaves me feeling much better.
It's like refactoring, after razing the first factor down and dancing on its grave!
Still, deleting all the code? I don't think I'm that hardcore.
rjbs
Reply to This
Parent
Re:Merciless Refactoring (Score:2)