Decision

Rebuild or Refactor? A Test That Takes Ten Minutes

The question every business with ageing software asks. Five questions that answer it honestly — and why the rewrite is usually the more expensive mistake.

Rebuild or Refactor? A Test That Takes Ten Minutes

Almost everyone asking this has already decided they want the rewrite. It feels clean. It is also the decision that most often costs a year and delivers a system with the same problems and none of the accumulated knowledge.

Five questions

SymptomUsually the answer
Slow, but correctRefactor: indexes, queries, caching
Unsupported framework, open CVEsUpgrade
One module blocks everythingStrangle that module only
Interface hated, logic soundNew front end, keep the core
Platform genuinely dead, system smallRebuild — the rare honest case

If you do rebuild

Write down what the old system does before deleting anything, keep it running in parallel, and migrate the data early rather than at the end. The data migration is where rewrites die, and it is always underestimated.

Questions

Is a rewrite ever cheaper?

When the system is small, well understood and the platform is genuinely unsupported. That is a much smaller set of cases than the number of rewrites that get started.

How do we decide without a big consulting exercise?

A 30-minute read of the code and one conversation with whoever operates it. We do that free and tell you which of the five cases you are in.

Read next