Legacy code modernisation: poster for the GreenCode film
Video created by explainapaper.com

Legacy code modernisation

By published estimates, most software in service is legacy, and in banking and healthcare systems written decades ago still carry the transactions and the patient records. This film explains why modernising them by hand costs more than anyone will approve, and how GreenCode turns the work into a pipeline that maps, documents and tests the code before refactoring it.

Chapters

In this film

  • Why old systems with no documentation, tests or sponsor are the ones nobody wants to touch.
  • Why modernising by hand is never funded, and how automation changes the arithmetic.
  • How the pipeline maps a codebase, fills gaps in tests and documentation, and only then refactors.
  • Why old systems are usually the easiest place in an estate to find avoidable energy use.

Transcript

Most software is already old

Most software in service is already old, and in banking and healthcare the systems written decades ago still carry the transactions and the patient records. They cannot be switched off, and nobody wants to touch them. The reason is structural. Who can safely change this system? One with no documentation, no test coverage, no sponsor, no visible feature to show for the work, and an energy bill nobody in the room is accountable for. Behind it sit the transactions it carries, and the records it holds.

What doing IT by hand costs

The problem is not that engineers do not want to modernise legacy code. It is that doing it by hand costs more than anyone will approve. Technical debt has a cost per line, and clearing it has its own price list: the quality assessment, the refactoring itself, the re-testing, the management and contingency on top. For a large open-source database, the estimate comes to a number of developer-years that no organisation funds and no community project has. So the work is not delayed. It is never done. Automating it changes the arithmetic.

A pipeline, not a project

GreenCode treats modernisation as a pipeline rather than a project. It accepts a working codebase and first maps it, giving a current picture of a system whose documentation stopped being true years ago. It then fills the gaps: where unit tests, in-code comments or external documentation are missing, generative AI writes them, so that any later change can be verified rather than hoped over. Only then does it refactor: rationalising dead and duplicated logic, replacing deprecated dependencies, porting obsolete languages into supported ones. Every change comes back as a documented pull request with the reasoning attached, so the maintaining team approves the work rather than inheriting it.

The low-hanging fruit

Old systems were written when processor time was cheap and energy was invisible. They run continuously, they are replicated across many installations, and nobody has ever profiled them. That combination makes them the largest available pool of avoidable energy use in software, and usually the easiest gain in an estate to find. The same work pays twice: lighter software demands less of the machine underneath it, and a modernised system is cheaper to change next time, because it arrives with the tests and documentation it should always have had. For a CTO, modernisation stops being a rewrite proposal that gets refused and becomes routine maintenance with a reviewable output. For the team, the mundane part of the job goes to the pipeline and the understanding stays in house, because the documentation and the training material are derived from their own code. Automated modernisation of old codebases is one of the deliverables GreenCode will bring out of the project. Reach out to us with the legacy system nobody wants to touch, and we will help you understand how GreenCode can modernise it without a rewrite.

More films

All GreenCode videos »

  • Length 2:58
  • Type Benefit film
  • Chapters 5
  • Captions English
  • Also on YouTube
GreenCode

Want to see what GreenCode finds in your own code? Talk to the GreenCode team.

Get in touch