Legacy Code

noun

say it: “LEG-uh-see KOHD” /ˈlɛɡəsi koʊd/

Old code that still runs part of a business but has no tests and no one left who remembers why it works as it does.

What is legacy code?

Legacy code is old code that still runs part of a business, often written in a hurry, by people who have left, with no tests to say what it's meant to do. It can't be changed safely until what it does today is written down, which is what characterization tests are for. Most working developers spend more of their time in legacy code than in new code.

In a sentence

  • “Before changing the gym's legacy code, the new developer pinned down what it did with tests.”

Level: Apprentice · More Software Development terms at this level

Updated