Rescue or rebuild
Rescue or rebuild? How to decide what to do with a struggling software project
Usually, rescue it. Fix the release process, the tests and the worst code, and keep the business rules that work. Rebuild when the platform has no supported upgrade path, the design cannot do what you now need, or the system is small enough that rewriting costs less than learning it. An assessment decides it: $10K, about a week.
Updated
Written by Jesse Sanders, CEO & Enterprise Principal
Why a rebuild is rarely the safe choice
In most cases, rescue the software you have: fix the release process, the tests and the worst parts of the code, and keep the business rules that already work. Rebuild only when the platform has no supported upgrade path, the architecture cannot do what the business now needs, or the system is small enough that rewriting it costs less than learning it. Decide from an independent review of the code, not from frustration with it.
A rebuild feels clean: new code, a new team, none of the old problems. But the old system holds years of business rules, edge cases and fixes that nobody wrote down. A rebuild has to find and reproduce all of them, while the old system still needs support and your users wait for new features.
Many struggling projects are not stuck because the code is beyond repair. They are stuck because of a broken release process, tests that nobody trusts, unclear ownership or missing documentation. A rebuild does not fix any of those by itself, and the new code can end up in the same state.
Which signs do you see?
Not sure the project needs help at all? Start with the signs a software project needs a rescue.
Signs that rescuing the code is the better path
- The product works for its users, but every change is slow or risky.
- The problems are in the process: releases, tests, environments or access.
- The framework is old, but it still has a supported upgrade path.
- The business rules live in the code and nowhere else.
- You cannot stop new features for the months a rebuild takes.
Signs that a rebuild may be justified
- The platform or language has no supported upgrade path, and nobody will support it.
- The product must now do something the current architecture cannot do.
- The code base is small enough that writing it again costs less than learning it.
- Security or compliance problems are built into the design, not only into parts of the code.
The decision, factor by factor
Go through each row for your own system. If most rows point to rescue, fix what you have. If several point to rebuild, look at replacing those parts first, not the whole system.
| Factor | Points to rescue | Points to rebuild |
|---|---|---|
| Upgrade path | The framework or runtime has a supported upgrade path, even a long one. | The platform is abandoned and nothing supported can run the code. |
| Business rules | Years of rules and edge cases live in the code and nowhere else. | The rules are simple, written down, or about to change anyway. |
| Users | People depend on the product every day and cannot wait for a replacement. | Few people use it yet, or they can keep using the old version until the new one is ready. |
| Size | The code base is large, so learning it costs less than writing it again. | The code base is small, so writing it again costs less than learning it. |
| Architecture | The product still does the same job; the problems are quality, not design. | The business now needs something the design cannot do, such as real-time data or multi-tenancy. |
| Where the problems are | In releases, tests, environments, access or process. | Built into the design itself, such as security or compliance gaps in how data is stored. |
| Time | You cannot stop new features for the months a rebuild takes. | You can freeze features, or run the old system unchanged, until the new one replaces it. |
What a rebuild estimate often leaves out
A rebuild quote usually prices the new code. Ask whoever gives you one to price these too, and to say how long the old and new systems will run side by side.
Finding the rules again
Every rule the old system follows has to be found, understood and rebuilt, including the ones nobody remembers adding.
Running two systems
The old system needs fixes, hosting and support until the new one replaces it, often for longer than planned.
Moving the data
Years of data must be moved into a new structure, cleaned and checked, usually more than once before the switch.
The feature freeze
While the team rebuilds what exists, the product does not get new features, and users or competitors do not wait.
Retraining users
A new system changes how people work. Support load goes up after the switch, even when the new system is better.
The same habits
If the release process, the tests and the ownership stay the same, the new code can end up where the old code is.
The middle path: replace it piece by piece
Rescue and rebuild are not the only two choices. You can stabilize the system first, then replace its worst parts one at a time while the rest keeps running. New code takes over one feature or route, users move to it, and the old part is switched off.
This keeps releases going and spreads the cost over time. Each step can be tested on its own, and you can stop when the system is good enough, instead of finishing a rewrite you no longer need. It also lowers the risk of the decision itself. If the first replaced part goes well, you have evidence for the next one. If it does not, you have lost one part's worth of work, not a year of rewriting, and the old system is still running. An incremental AngularJS migration is one example of this approach. Our AngularJS to Angular migration services work this way, and software project rescue starts by stabilizing the system first. The steps, in order, are in how to modernize a legacy application without a full rewrite. Weighing a move from Angular to React? See rescue Angular or rebuild in React.
Answer these before you choose
- Which parts of the system cause most of the defects and delays?
- Is there a supported upgrade path for the framework and runtime, and how many steps is it?
- Where are the business rules written down, other than in the code?
- What would the old system need, and cost, to keep running during a rebuild?
- Which problems would a rebuild fix by itself, and which would follow you to new code?
- Can the worst parts be replaced one at a time while the rest keeps running?
Decide from evidence, not opinion
Both choices are expensive to get wrong. A vendor that has not read your code can only guess which one is right.
An independent technical assessment reviews the code, the architecture, the process, the release pipeline and the security. It says what to fix, in what order, and what the work will cost. Briebug's Technical Assessment takes about 1 week for a fixed fee of $10K, and the report is yours to take to anyone.
Whoever does the review, check them against the same criteria: how to choose a software project rescue firm, or compare the kinds of rescue provider side by side.
PSIA / SnowPro
Education, certification and membership platform for ski instructors
Upgraded, not rebuilt: Angular 7 to 17, .NET Core 3.1 to .NET 8, working test suites, and repositories, pipelines and documents in an Azure DevOps environment PSIA owns.
Read the PSIA / SnowPro case studyCommon questions
Is it cheaper to rebuild software from scratch?
Rarely, once you count everything. A rebuild has to find and reproduce every business rule in the old system, and the old system needs support until the new one replaces it. An assessment gives you the numbers for your own project before you choose.
How do I know if our code is worth keeping?
Have someone independent read it. An assessment looks at the code, the architecture, the tests, the release pipeline and the security, and says which parts are sound and which are not.
Can we rescue part of the system and rebuild the rest?
Yes. The triage report says which parts to fix, which to replace, and in what order, so you can replace the worst parts while the rest keeps running.
What does replacing a system piece by piece mean?
The new code takes over one feature or route at a time while the old system keeps running the rest, often behind a routing layer. Engineers call it the strangler fig pattern. Each step ships on its own, and the old system shrinks until it can be switched off.
How long does a technical assessment take, and what does it cost?
About 1 week, for a fixed fee of $10K. You get a comprehensive report you can take to anyone, a triage report of what to fix in what order, and a milestone-based estimate.
Find out what your code is worth before you decide.
Book a short call with a senior engineer. We will scope the assessment and confirm the fixed fee before you commit.