2 ms·
Print this out and post it on a wall where you see it every time you leave your desk or come back: Refactoring is a bottom up process. You make local changes,
by hinkley 9y ago
Print this out and post it on a wall where you see it every time you leave your desk or come back:
Refactoring is a bottom up process.
You make local changes, and those reveal the paths of least resistance in the code. Contiguous refactors start suggesting further refinements or even new features and it spreads and spreads across the app.
By the time you are making structural changes to the app, the avalanche should have already started and it is too late for the pebbles to vote. If that isn't happening for you then put it down to impatience borne of frustration with the rate of change.
One of the best ways I know to speed this process up without violating the 'rules' is to start with the build scripts and work your way through the initialization code of the app, chipping away at smells until it starts looking right. With good code to the 'left' you have a beachhead (and a line in the sand) you can use to push out into various subsystems improving as you go.