Video in progress
How do you justify to the business that you need time to pay down tech debt?
I don't say "the code is bad". I translate the debt into the language of money, time or risk: how much each feature is slowing down, how many incidents there have been. Then I propose a concrete plan with small steps.
📖 Answer
For the business, the word "refactoring" means "developers are spending time on something that brings no profit". So the argument has to be in a different language.
Arguments that work:
- Speed. "Over the last three months, each feature added to the payment module took 6 days on average, versus 2 days in other modules."
- Incidents. "This quarter there were 4 prod incidents, all from a single
ReportService. Each cost support about 5 hours." - Risk. "Free support for Spring Boot 2.7 has ended. If a security patch comes out, we can't apply it quickly."
- People. "A new developer takes 3 weeks to get used to this module."
Then the plan: "we stop everything and refactor for three months" almost never gets accepted. The options that work:
- 15-20% of each sprint for technical work;
- cleaning up the area you're working on as you go (the boy scout rule);
- making the single most painful part a separate ticket and measuring the result.
Show the result afterward: "After the cleanup, a feature was added to this module in 2 days." Next time there will be more trust.
Sign up to mark studied questions and save your progress.