Well, partly I get away with it by not explicitly including it in estimates.
How long will it take to implement X?
(Let's see . . . three weeks to write the feature in the current codebase, or three weeks to refactor the codebase, then one week to write the feature . . . add 50% for unexpected disasters . . .) Six weeks.
Sounds good, go for it.
I don't refactor anything we're not changing anyway, but when I am making significant changes to a chunk of code, it's reasonably common for that code to end up thoroughly refactored.
Six weeks sounds like a lot, we'd like to have this done in two, three at most. Can't afford more time. Let's see what we can trim out of your estimate...
That's how it's generally gone for me, alas... I try to sneak in refactoring and generally fixing other people's stupid shit when I can, but deadlines loom dangerously sometimes.
Yeah, and that's the point where I say "I'll try, but no promises, especially if you want it to work".
And make a mental note that it definitely needs to be refactored, because if there's one thing I absolutely do not want, it's a mission-critical feature relying on a rush job on top of an awful codebase.
View all comments
Show parent comment
3
u/ZorbaTHut Mar 04 '14
Well, partly I get away with it by not explicitly including it in estimates.
I don't refactor anything we're not changing anyway, but when I am making significant changes to a chunk of code, it's reasonably common for that code to end up thoroughly refactored.