Skip to main content
GullySystem

Software Re-Engineering

Software re-engineering restructures a working system module by module, rebuilding the data model and the code while the application stays in daily use. Your team keeps working throughout.

Signs the problem is structure, not technology

A working system should not be rebuilt out of boredom. The sign is repetition: the same fix applied in five places, each time missing a sixth.

Copied logic

Discount rules are written separately in billing, in quotations and again in the mobile app.

One table doing four jobs

A status column carries fourteen values, half of them added for a report nobody runs now.

Testing by hand

Every release is followed by manual checking at the counter, and a new field can break an unrelated report.

How the work is sequenced

The system stays live throughout. Work happens behind the screens your staff already know, so most of them notice a change only when a slow report opens faster.

Read the database first

The data model is mapped as it stands, including the columns that quietly stopped being used.

Carve out one module

Billing, or purchase, is separated and rebuilt behind the same screen, then switched over.

Keep a way back

Each switch can be reversed for an agreed period. A wrong assumption is then a small correction, not a lost quarter.

Re-engineering or a rebuild from zero

The answer depends on the data, not the age of the code.

Keep and restructure

Sound data, untidy code and a business that has not changed shape point towards re-engineering.

Rebuild instead

A dead platform, missing source code or a business that now works differently points the other way.

Half and half

Old records are archived read-only while new transactions begin in the rebuilt module.

Techniques that improve structure

Re-engineering changes the inside and keeps the behaviour.

Characterisation tests

Tests record what the code does now, right or wrong. They guard against accidental change.

Extract and isolate

Tangled logic is pulled into separate modules with clear inputs. Each can then be fixed or replaced alone.

Remove dead code

Unused screens, tables and settings are found and dropped. The system gets smaller and easier to read.

Measuring improvement

The work needs visible results.

Fewer incidents

Track repeat faults. A fall shows the structure improving.

Faster changes

Time to add a small feature is noted before and after.

Easier onboarding

A new developer should reach a first fix sooner than before.

Preparing a re-engineering assessment

Preparation shortens the assessment.

Incident history

Faults of the past year with dates.

Change requests waiting

The list shows where the structure blocks progress.

Deployment steps

How a release is made today, even if it is manual.

A week inside a re-engineering sprint

Re-engineering runs beside normal trading, so each week has two rhythms. Staff keep entering orders while the module behind them is rebuilt. Every day carries a job on the old side and a job on the new side. One week looks like this.

Monday: choose the module

The team picks one module for the week, say stock transfers, and lists every screen and report that touches it. Support staff add the complaints they heard. That list becomes the scope. Nothing outside it is altered.

Midweek: shadow the old version

The rebuilt module receives a copy of each day’s entries and produces its own totals. A clerk compares both sets at lunch. Any mismatch goes on a sheet with the record number. Nobody retypes a thing.

Thursday: the floor tries it

Two people from the department use the new screens on real work while the old ones stay open beside them. They say what feels slower or odd. Those remarks are dealt with before any switch.

Friday: switch or hold

The department head decides whether the module goes live, reading the comparison sheet. Holding is a fair answer. The old module stays reachable until the following week closes without a surprise. Going back needs no meeting.

Decisions to settle before the first module moves

A few choices belong to the business, not to the developers. They cost little to settle now and are awkward to reverse once a module is half moved. These four come up before anything else is touched. Each takes one conversation.

Who approves going live

Name one person per module who signs off the switch, ideally the person whose team lives in those screens. Developers recommend. The owner of the work decides. Write the name down so a late-night release has an answer.

Which records keep their old shape

Some tables are read by outside tools, such as a courier upload or an accountant’s export. Mark them so their columns stay fixed. Everything else may be restructured freely. Short list, agreed early. Mark those tables first.

How old rows are carried across

Decide whether closed years move into the new structure or stay in an archive table. Moving them tests the new model hardest. Leaving them keeps the switch small. Pick per module, not once for all.

The report nobody may change

Pick the one report the owner trusts above all, perhaps the daily dues sheet. Its figures must match before and after every module moves. It becomes the yardstick, and any difference stops the release. That rule has no exceptions.

Make an informed decision

Questions to settle before rollout.

Use a representative scenario to decide what this part of the system must show and where review is still needed.

Testing by hand

Can the test fail for the right reason when run on its own?

For “Testing by hand”, agree the expected visible result and the starting records. Run the scenario independently, so another test cannot supply the state that makes it pass.

Background reading: Playwright: testing visible behaviour

FAQ

Frequently asked questions

Is software re-engineering cheaper than a rewrite?

The system’s condition decides this. The bigger difference is risk. Re-engineering keeps business rules that nobody has written down elsewhere, and a rewrite has to rediscover each one of them.

Can our team keep working during the work?

Yes. Modules move one at a time behind the screens they already use, and each switch happens after hours with a way back if something looks wrong the next morning.

What if the original developer is gone?

That is a common case. Work starts from the database and the running system, not from documentation, which may be missing or out of date.

What is the difference between re-engineering and refactoring?

Refactoring tidies code in small steps. Re-engineering is wider, and may reshape modules, data and deployment together.

How do we know a rewrite is not needed?

If the data model is sound and the main faults sit in code layers, re-engineering is likely enough. An assessment confirms this.

Why write tests for code we plan to change?

Tests that record today’s behaviour, called characterisation tests, show when a change alters a result. Without them, structure improvements can quietly break invoices or stock figures.

Talk to us

Tell us what you need.

Tell us what your team does today, where work gets stuck and what you want to change.

What happens after you share your requirements

  1. We review your brief and the systems you already use.
  2. We clarify the workflow, missing information and the work to consider first.
  3. The proposed scope sets out the deliverables, responsibilities and dependencies.
  4. Review the scope and commercial terms before deciding whether to proceed.

Start with your requirements

Describe your current process, the people involved and the change you need. Start with the details you know; we can clarify the rest together.

Share your requirements