legacy code

Existing code you have inherited, usually with few or no tests, that others depend on.

In more detail

The first step with legacy code is often to write tests that pin its current behaviour, even where that behaviour is known to be wrong, so later changes are safe. Seams and characterization tests are the standard tools for getting it under control.

Related terms

Taught in

References