10.3.2 · Skill in Maintenance

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.

Your status · Technical debt

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

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

  1. When you take a shortcut on purpose, write it down: what you skipped, why, and what would make you fix it.
  2. Make debt visible where work is planned, as issues with a cost, not as complaints.
  3. Pay down debt in the code you change most often. Debt in code nobody touches can wait.
  4. Fix debt as part of feature work when you can, in small steps.
  5. Watch the signals: changes that take longer each time, the same bugs returning, areas people avoid.
  6. 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)

Two by two

Four kinds of technical debt

  1. 1Ship now, and plan the repairThe payoff of an early release is worth the cost
  2. 2Now we know how it should have been builtInevitable, even for excellent designers
  3. 3Design practices the team did not know
  4. 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

Sources: Technical debt quadrant (Martin Fowler) ↗

Resources

1
  • articleStart here
    Technical debt quadrant ↗
    Martin Fowler · 2009 · 4 min

    Not all debt is bad: deliberate and prudent debt is a choice, reckless debt is a mess.

Tools

1
Tools for Maintenance