Skip to content

FAQ

Common questions: measuring debt, when to rewrite, ROI of refactoring.

How do I measure technical debt?

SonarQube, Code Climate, or simple metrics (cyclomatic complexity, lines per file, test coverage). None is perfect.

When to rewrite?

Almost never. Rewrite only if the code cannot be changed incrementally and the cost of staying is higher than the cost of rewriting.

Is debt always bad?

No. Deliberate, tracked, small debt is a strategic tool.

How much time to allocate?

10–20% per sprint. Less if debt is low; more if it's high.