Operations · Operations & process management
Technical debt management
Best for Startup to Growth
Use it when
Changes to your software keep taking longer because of known shortcuts and outdated design, and you need to decide which debt to repay, when and with what capacity.
Skip it when
- You are choosing the structure and technology for a new or reworked system. Use Technical architecture framework, which records debt as one of its outputs.
- Defects keep reaching users because quality checks in the process are missing. Use Quality assurance framework, which feeds this framework.
- Single code changes need a second developer's approval before they merge. Use Code review process.
- The weakness is a security risk in a coming release. Use Product security framework, which this framework feeds.
- You need to find which part of delivery is slowest before choosing what to fix. Use DORA metrics for DevEx.
What to apply first and what to use instead are listed below.
Approaches
Pay as you touch
Developers clean up part of the code they are already changing for a feature, a little with each change.
- Pro Effort goes where the team works most, since debt only costs time when someone changes that code.
- Con Debt that spans several teams or projects can sit untouched, because no single change owns it.
Reserved capacity
A fixed share of each release goes to the top items in the debt registry.
- Pro Repayment keeps its place in the plan even when feature work is pressing.
- Con Teams can spend the share on low-impact clean-up unless items are ranked by business consequence.
Inputs
- Debt itemsKnown shortcuts, outdated designs and messy code, from the issue tracker, code review comments, architecture reviews and retrospectives.
- Change historyHow often each module or service changed over the last 6 to 12 months, from version control.
- ConsequencesWhat each item slows or blocks in business terms, such as lead time for new features, defects or limits on performance, from engineers and product owners.
- Remediation estimatesRough effort for each candidate fix, from the engineers and architects who know the code.
- Release planPlanned features and the code they will change over the next one or two quarters, from the product roadmap.
Steps
- Set up one debt registry, such as an issue type or label in your tracker, and log each item as soon as someone finds it.
- Describe each item with a short name, the code it sits in, its consequences in business terms, a remediation approach, the reporter and an owner. Write "analysis pending" where the fix is not yet known.
- Classify how each item arose, as deliberate or inadvertent and prudent or reckless, and stop the reckless patterns at their source.
- Rank the items by consequence and by how often their code changes now or will change under the release plan. Mark debt in code nobody touches as hold.
- Choose the repayment route for each top item, as you touch the code, from reserved capacity, or both, and put it in the backlog with an owner. Take debt that spans teams to a sponsor with authority over all of them.
- Review the registry at each release or planning cycle. Close repaid items, add new ones and check every architecture decision for debt it adds or removes.
Output
A technical debt registry with a ranked repayment plan for the next release or quarter.
- Item name and location in the code
- Consequence in business terms
- Origin (deliberate or inadvertent, prudent or reckless)
- Change frequency of the affected code
- Remediation approach and estimate
- Rank and repayment route (as touched or reserved capacity)
- Owner and target release
- Status
Done when
- Every item names the code it sits in and a consequence stated in business terms.
- Every ranked item has a remediation approach, or is marked analysis pending with an owner.
- The ranking uses change frequency, and items in code untouched over the window are marked hold.
- The plan states the repayment route and the capacity set aside for the next release.
- Debt that spans teams has a named sponsor above the affected product owners.
Measure
Track lead time for changes and defect counts in the areas you repaid over the next two to three releases, against the same areas before repayment. Also track the share of each release spent on debt and the count of open high-ranked items. It worked when changes in repaid areas get faster and the open high-ranked count falls.
Hypothetical example
Fernway, a billing software team of 12, logged 31 debt items over one month. Version control showed the invoice module changed in 40 percent of merges in the last half year, and it held six items, including a tax rule copied in four places. Its consequence was three weeks of edits for every new country. The reporting module held nine items but changed twice in the half year, so the team marked them hold. They reserved 15 percent of each two-week sprint for the top five items and asked developers to clean up invoice code as they touched it. Two quarters later, adding a country took eight days, and open high-ranked items fell from eleven to four.
Common mistakes
- Treating all old or untidy code as debt to repay. Rank by consequence and change frequency, and leave stable code alone.
- Writing debt items in technical terms only. State what each one slows or blocks, so it can compete with features for time.
- Keeping debt in people's heads or private lists. Log every item in one registry as soon as it is found.
- Using the debt idea to excuse careless code. Write code that reflects what you know now and is clean enough to refactor later.
- Leaving debt that spans several teams in one team's backlog. Name a sponsor with authority across all of them.
Sources
- Ward Explains Debt Metaphor (transcript of his 2009 video) · Ward Cunningham, 2009
- Technical Debt · Martin Fowler, 2019
- Technical Debt Quadrant · Martin Fowler, 2009
Show all 5 sources
- Experiences Documenting and Remediating Enterprise Technical Debt · Stephany Bellomo, 2022
- Continuous Architecture in Practice: Why Software Architecture Is Important and Essential Activities (excerpt) · Murat Erder, Pierre Pureur and Eoin Woods, 2021
By company stage
Apply first
Nothing. You can start here.
Use instead
- Technical architecture framework
You are choosing the structure and technology for a new or reworked system. Use Technical architecture framework, which records debt as one of its outputs.
- Quality assurance framework
Defects keep reaching users because quality checks in the process are missing. Use Quality assurance framework, which feeds this framework.
- Code review process
Single code changes need a second developer's approval before they merge. Use Code review process.
- Product security framework
The weakness is a security risk in a coming release. Use Product security framework, which this framework feeds.
- DORA metrics for DevEx
You need to find which part of delivery is slowest before choosing what to fix. Use DORA metrics for DevEx.
Where it sits
Open the operations & process management roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account