Legacy code usually refers to old COBOL mainframe programs that contain complex
business logic. It would be too costly to rewrite them in more modern languages.
Somehow new code has to interface to these older systems, presenting a modern front to
the outside world. The term can be used more broadly to refer to any old code that
cannot be completely discarded.