---
title: "When Software Stops Being Enough: Refactor, Rewrite or Replace"
description: "The decision to rewrite a system is usually made out of frustration. It is also the most expensive of the three options, and usually not the right one."
canonical: "https://interfase.sk/en/news/when-software-stops-being-enough-refactor-rewrite-or-replace"
lang: "en"
last_updated: "2026-11-30"
---

# When Software Stops Being Enough: Refactor, Rewrite or Replace

> The decision to rewrite a system is usually made out of frustration. It is also the most expensive of the three options, and usually not the right one.

Published: 2026-11-30

- The cause decides, not the feeling: a slow system needs a different answer from one that no longer does what the company needs.
- A rewrite underestimates years of unwritten exceptions that work in the old system and nobody knows about.
- Off-the-shelf is cheapest when the process is ordinary — and most expensive when the process is your competitive advantage.
- In most cases incremental replacement in pieces wins, not one large decision.

The system has run for eight years. Every change takes longer than the last, nobody wants to touch the invoicing part, and the last person who really understood it left a year ago.

A proposal arrives: "let's rewrite it from scratch, it will be cleaner." It sounds logical, and it is the most expensive option on the table.

## The cause first, then the answer

The decision cannot be made on a feeling that the system is old. What specifically does not work has to be named — the answer determines the solution:

- **It is slow.** Usually not a reason to rewrite. Slowness has specific causes and they can be fixed; we wrote about it in [where time is really lost in a business application](/blog/rychlost-firemnej-aplikacie-kde-sa-realne-straca-cas).
- **Changes are expensive and risky.** That is a question of code and tests — room for incremental repair.
- **It does not do what the company needs today.** Here it is about functionality rather than technology, and the answer is usually to extend or replace a part.
- **The technology is end-of-life** and no longer receives security updates. This is the one reason with a hard deadline that cannot be postponed.
- **There is nobody to maintain it.** The risk is real, but the answer may be documentation and training rather than a new system.

## Three options and what they actually cost

**Incremental repair.** The system stays and gets fixed in parts — starting with whatever slows things down most. Lowest risk, results visible as you go. The downside: it does not address a situation where the foundation itself is wrong.

**A rewrite from scratch.** The most tempting and most treacherous option. The problem is not the technology — it is that the old system contains **years of exceptions that are written down nowhere**. Discounts for three specific customers, special rounding for one country, bypassing approval on orders under fifty euros. Nobody writes them down because nobody knows about them — until they start missing from the new system.

The second thing a rewrite underestimates: while the new system is being written, the old one has to keep running and changing. So development runs twice.

**Off-the-shelf.** Cheapest at the start and sensible when the process is ordinary — accounting, payroll, attendance. Unsuitable when the process is your competitive advantage; then the company adapts to the tool and loses exactly what set it apart. This connects to what we describe in [vendor lock-in](/blog/vendor-lock-in-ako-si-udrzat-kontrolu-nad-vlastnym-softverom).

## A combination is usually the right answer

In practice one option rarely wins for a whole system. A sensible split: **off-the-shelf for what everyone does** (accounting, payroll, email), **custom development for what makes you different**, and **incremental repair for what works and simply needs maintenance**.

If a part does get replaced, it happens in pieces rather than all at once — the approach we described in [migrating off a legacy system without downtime](/blog/migracia-z-legacy-systemu-bez-odstavenia-prevadzky).

## How to compare costs

The most common mistake is comparing the price of a rewrite with the price of a licence and declaring a winner. The comparison has to include:

- **the cost over three to five years**, not the first,
- **operating and maintenance costs** for both options,
- **the price of change** — what a new feature costs in each,
- **transition costs** — data migration, training, running both in parallel for a while,
- **the cost of leaving** — what it will take to move off the solution in five years.

That last point is almost always omitted, and it is usually the largest.

## The question that decides

If you cannot make up your mind, ask this: **what happens if we do nothing for another twelve months?**

If the answer is "nothing dramatic, it will just stay uncomfortable", you have time for incremental repair. If it is "the bank integration will stop working" or "we will stop receiving security updates", it has a deadline, and that deadline determines the scope.

## Where to start

By writing down specific problems instead of one "it is outdated". A list of the five things that hurt most, with an estimate of how much time or money each costs a year, is a better basis for a decision than any discussion of technology.

If you are facing this and want to go through the options for your case, [get in touch](/kontakt). More on [custom development](/riesenia/vyvoj) and examples in our [case studies](/referencie).


---

Web version: https://interfase.sk/en/news/when-software-stops-being-enough-refactor-rewrite-or-replace
llms.txt: https://interfase.sk/llms.txt
