2 ms·
> What is "legacy code"? > "Legacy code" is a term often used derogatorily to characterize code that is written in a language or style that (1) the speaker/wri
by cryptonector 7y ago
> What is "legacy code"?
> "Legacy code" is a term often used derogatorily to characterize code that is written in a language or style that (1) the speaker/writer consider outdated and/or (2) is competing with something sold/promoted by the speaker/writer. "Legacy code" often differs from its suggested alternative by actually working and scaling.
Oh? To me legacy code is code that's been put into production. The moment it's in production, you have to maintain it, you have to worry about backwards compatibility and interoperability. The moment it's in production the field is no longer green.
Perhaps production code is only legacy code the moment you want or have to change it, but since that almost always ends up happening, so the moment it's in production, it's legacy.