Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the definition of "legacy code"? [duplicate]

Possible Duplicate:
What makes code legacy?

What is the definition of "legacy code"?

like image 301
user128807 Avatar asked Nov 13 '10 21:11

user128807


People also ask

What is the meaning 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.

What is legacy code in testing?

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 in SAP?

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.


2 Answers

Channeling Michael Feathers: Code without tests.

like image 161
Jörg W Mittag Avatar answered Sep 21 '22 19:09

Jörg W Mittag


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. :)

like image 25
Shaggy Frog Avatar answered Sep 20 '22 19:09

Shaggy Frog