Jump to the navigation menu

Refactor, remove or replace

There are three things you can do with legacy code.

Refactor it, remove it or replace it.

You can refactor it to make it easier to maintain and change in the future.

If it's not needed, you can remove it.

If it's not used, there's no need to keep it.

Or you can replace it with something else.

There isn't one right answer and the correct approach will depend on the situation and objective.

In a future email, I'll give some examples of how I refactor legacy code.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 18 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.