开发者

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

This question already has answers here: Closed 12 years ago.

P开发者_如何学JAVAossible Duplicate:

What makes code legacy?

What is the definition of "legacy code"?


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


Code someone else written (usually someone no longer available for any contact), but you must deal with it now.


Code written by others or under a previous language, architecture, methodology, or framework that pertains to the current project.


I would say that legacy code is (usually old) code that can be rewritten using better programming techniques or languages. Legacy code usually is not easily rewritten because of dependencies on that code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜