Technical debt and code review · Starting Up

How do I measure, manage and reduce technical debt?

Checked 24 November 2026

Measure the effects, not the debt: how long changes take to ship, how often deploys fail, and where engineers say the code slows them. Keep a short list, fix debt in code you are already changing, and set aside regular time, as Basecamp does with two weeks of cool-down after each six-week cycle.

By case

  • If one area slows every feature

    Give it a focused clean-up with a clear end.

    Its interest is paid on every change, so this is where clean-up pays back fastest.

  • If someone proposes a full rewrite

    Refactor in small steps behind tests instead.

    In Lou Franco's account of Trello's iOS app, rewriting early proved overkill against fixing the parts that crashed.

  • If you are still looking for product-market fit

    Take debt freely in code you may delete, and keep the core flows clean.

    Much early code is thrown away with the experiment it served.

  • If deploys are manual and risky

    Automate deployment first.

    Fowler's scaleups article puts the ability to deploy at will, usually at least once a day, ahead of other clean-up.

The steps6 steps

  1. Track DORA's delivery metrics for your main application.

    The official page on dora.dev

  2. Ask the team each month which part of the code slowed them most, and keep a short debt list.

    The official page on martinfowler.com

  3. Rank items by how often that code changes and how much it slows each change.

    The official page on martinfowler.com

  4. Fix debt in the area you are changing, inside the same piece of work.

    The official page on martinfowler.com

  5. Set aside a regular block for the bigger items, such as a cool-down after each cycle.

    The official page on basecamp.com

  6. Hold the line at review: small pull requests, tests, and approval only when a change improves the code.

    The official page on google.github.io

The figuresEach with where it was read

What goes wrong

  • Chasing a static-analysis debt score, which measures the code rather than what slows you.

  • A big rewrite that stops features for months.

  • A debt backlog nobody reads or schedules.

Go deeper7 sources

  • Technical Debt

    Martin Fowler · martinfowler.com · Essay · About a 10 minute read

    This is the canonical explanation of what a reviewer actually means when they flag your inherited code as risky. Fowler frames messy code as debt you pay interest on: every future feature gets slower, which is the real cost you inherit from a rushed agency build. Read it to understand why a reviewer separates crufty-but-stable code (leave it) from cruft in code you touch often (fix it), so you can read a review report with judgment instead of panic.

  • Bottlenecks of Scaleups: Tech Debt

    Tim Cochran and Carl Nygard · martinfowler.com · Article · 20 min read

    This lays out when accumulated shortcuts actually start slowing a growing company down, versus when they are just cosmetic. It gives you language to tell your co-founder the difference between debt that is costing you real velocity and debt that is only annoying. Use it to pressure test whether your no-code setup is genuinely blocking growth.

  • Paying down tech debt

    Gergely Orosz and Lou Franco · The Pragmatic Engineer · Article · 20 min read

    Concrete, field-tested advice on deciding which debt to pay and how to justify it. Orosz and Franco share practical rules of thumb for tying rewrite pressure to real jumps in usage or scope, which matches your point about rebuilding under real load rather than on a hunch. It also covers measuring the payoff so cleanup does not become an endless detour.

  • Refactoring: Improving the Design of Existing Code (2nd Edition)

    Martin Fowler · martinfowler.com · Book · 448 pages

    The canonical case that you can reshape a system in safe, small steps rather than one dramatic rewrite. Fowler shows how to change structure without changing behavior, backed by tests, so quality improves while the product keeps shipping. This is the discipline that makes the incremental path actually work in practice.

  • The Standard of Code Review

    Google · Google Engineering Practices · Article · 10 min read

    Founders often swing between rubber stamping and nitpicking every line, and this sets a sane bar: approve once the change improves the codebase, not once it is perfect. That principle keeps review from becoming the ceremony that kills your speed. Read it to agree with your first hire on what review is actually for.

  • DORA's software delivery performance metrics

    DORA (Google Cloud) · dora.dev · Official

    The research-backed set of delivery metrics, the closest thing to a measure of what technical debt costs you.

  • Shape Up: Bets, Not Backlogs (six-week cycles and cool-down)

    Ryan Singer, Basecamp · basecamp.com · Book

    The chapter where Basecamp explains the two weeks after every cycle that its programmers use to fix bugs and clean up.