Possible Duplicate:
What makes code legacy?
What is the definition of "legacy code"?
What Is Legacy Code? Legacy code is source code inherited from someone else or inherited from an older version of the software. It can also be any code that you don't understand and that's difficult to change.
Another commonly used definition of legacy code is code written without proper tests. The first definition (“ugly code”) does not necessarily rule out the second one (“code without tests”). We can say that there are many different cases when code can be called “legacy”.
What is legacy code? The modern interpretations of legacy code is source code inherited from someone else and source code inherited from an older version of the software.
Channeling Michael Feathers: Code without tests.
I can't remember where I saw the expression (Pragmatic Programmer?) but one way to think about it is code is legacy code as soon as it's written.
Generally it's referred to code that gets inherited by a team or a programmer from somewhere else (external or internal).
I prefer the former definition, though. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With