Technical debt
Shortcuts that make future changes slower, and managing them deliberately.
Some technical debt is a smart trade for speed, and some is just mess. Making it visible and paying it down in the areas you change most keeps velocity up. Debt in code nobody touches can often wait.
Why it matters for a product engineer
Technical debt is the extra cost of change caused by earlier shortcuts. Some of it is a good trade: a quick version that tests an idea is worth more than a clean one that ships too late. Some of it is just mess. Product engineers make these trades every week, so they need to know which kind they are taking on, and where paying it down will speed up the next change.
How to do it
- When you take a shortcut on purpose, write it down: what you skipped, why, and what would make you fix it.
- Make debt visible where work is planned, as issues with a cost, not as complaints.
- Pay down debt in the code you change most often. Debt in code nobody touches can wait.
- Fix debt as part of feature work when you can, in small steps.
- Watch the signals: changes that take longer each time, the same bugs returning, areas people avoid.
- Accept that some debt is only visible later, once you understand the problem better.
Common mistakes
- Calling every piece of code you dislike “debt”.
- A big rewrite instead of steady repair.
- Shortcuts with no record, so nobody knows they were shortcuts.
- Never paying down, so every change gets slower.
Example
Not all debt is in the code. Zernio started on Vercel, a fast choice for a weekend launch. At its current scale, “Vercel at our scale is very expensive”, so it is moving to Cloudflare in steps: the queues first, the whole API next, with no downtime. The debt is paid where it costs most, without a big rewrite. (Zernio in In practice)
Four kinds of technical debt
- 1Ship now, and plan the repairThe payoff of an early release is worth the cost
- 2Now we know how it should have been builtInevitable, even for excellent designers
- 3Design practices the team did not know
- 4No time for clean codeUsually slower, not faster
Debt taken on deliberately and with care is a tool. Debt taken on recklessly, on purpose or not, is the kind to avoid.
Martin Fowler, 'Technical debt quadrant', 2009
Resources
1- articleStart here
Technical debt quadrant ↗
Martin Fowler · 2009 · 4 minNot all debt is bad: deliberate and prudent debt is a choice, reckless debt is a mess.
Tools
1- ToolOpen source
Renovate
Open-source bot that opens pull requests to keep dependencies up to date.