in reply to Difficult code (Resolutions)
There'll be plenty of time for that later.
Even if every important variable is named based on some variation of "temp", the important thing is to produce working code in the timeframe given by my employer.
There is a middle ground: Clean one room at a time. As you encounter a section of code that you need to extend or do maintenance on, take a few minutes to look it over first. If there are bogus variable names, change them before you change anything else. Then make your changes. By leading with a semantic-preserving refactoring, you eliminate (or greatly reduce) the risk that you'll break things accidentally.
As much as it pains us to pick up a really foul piece of code without stopping to rewrite it, there often isn't a business case for giving it a thorough scrub. But that doesn't mean we can't do any cleanup. Take it one room at a time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Difficult code (Resolutions)
by adrianh (Chancellor) on Aug 21, 2003 at 08:27 UTC | |
Re: Re: Difficult code (Resolutions)
by xChauncey (Scribe) on Aug 21, 2003 at 05:33 UTC |