Tech Debt: When to Pay, When to Walk Away
Not all tech debt is equal. Strategic debt vs reckless debt, refactoring ROI, and how to sell prioritisation to stakeholders.
By Rais Helmy, IT consultant in Kuala Lumpur, Malaysia.
Tech Debt. When to pay. When to accept it.
Not all tech debt is a crisis. Some is strategic. The problem is when teams can't tell the difference — and when engineers cry wolf, eroding stakeholder trust over time.
Debt has an interest rate. Know yours.
Ward Cunningham's original metaphor: deliberate debt (we know the shortcut) vs inadvertent debt (we didn't know better). The former is a business decision. The latter is the result of learning. Only reckless debt — shortcuts taken carelessly — is always bad.
Deliberate (strategic)
"We'll use a direct DB call for now to hit the launch date — we'll abstract it in Q2." Known, tracked, planned.
Reckless (crisis)
No tests, no documentation, magic strings everywhere, functions named "doStuff2". Nobody knows why. Nobody documented the shortcut.
→ Document deliberate debt the moment it's created: what shortcut was taken, why, and what the repayment plan is. Undocumented shortcuts become reckless debt within 60 days.
frame 2 · when to prioritise refactoring
Expectation: best practice
- Refactor on the path of new features — the boy scout rule: leave code cleaner than you found it.
- Prioritise debt that slows new feature delivery by >20% — measurable business impact.
- Track "flow debt" — the code areas engineers avoid because they're painful to change.
Reality: what most teams do
- "We need a full rewrite quarter" — never approved, never scoped. Debt grows instead.
- Refactoring tickets sitting in backlog for 8 months with no business justification.
- Engineers complaining about debt to each other but not translating impact for stakeholders.
Example (code)
// ✦ Business-case framing for debt
Tech Debt: Order Processing Module
Current cost: 3 days to add any new payment method
due to tightly coupled legacy code.
Last quarter: 2 features delayed 1.5 weeks each = 3 weeks.
Estimated Q3: 3 features planned = ~4.5 week delay risk.
Refactor cost: 1 sprint (2 weeks)
ROI: breakeven after 1 feature in Q3
Recommendation: prioritise in next sprint as investment,
not maintenance.frame 3 · selling debt to stakeholders
Expectation: best practice
- Translate debt to delivery risk, not engineering aesthetics: "This slows feature delivery by X days."
- Show the compound effect: debt grows over time if not addressed — like financial interest.
- Propose a % allocation: "We reserve 20% of sprint capacity for debt reduction each sprint."
Reality: what most teams do
- "The code is messy" — stakeholder hears: engineer complaining, doesn't see business risk.
- Asking for a full sprint of "refactoring" with no measurable outcome: stakeholders reject it.
- No tracking — same debt argument made every quarter with no evidence anything changed.
Example (code)
// ✦ 20% rule framing
Proposal: Reserve 20% sprint capacity for debt.
This doesn't slow features — it prevents slowdown.
Current trend: 5% slower feature delivery per quarter
as the codebase grows without maintenance.
With 20% debt budget:
- Q3: same velocity as today
- Q4: +10% faster than without maintenance
- Year 2: team avoids the "big rewrite" conversation
Tracked by: deployment frequency + lead time metrics.tech debt triage matrix
- High pain + frequent touch: Fix next sprint - Slows daily work, high ROI on fix
- High pain + rare touch: Document & isolate - Wrap with an abstraction, don't touch internals
- Low pain + frequent touch: Boy-scout rule - Incrementally improve while passing through
- Low pain + rare touch: Accept it - Technical debt with negligible interest rate
- Unknown pain: Spike first - Understand the cost before committing to a fix
- Rewrite urge: Strong resist - Rewrites almost always reveal why the original existed