When do you say code is legacy code?

Any useful indicators will be good.

+5
source share
15 answers

One of the things I'm looking for in code is unit test. This will give freedom to reorganize it. Therefore, if the code does not have tests, I consider it to be obsolete code.

+12
source

If the code:

  • has been replaced by new code that implements the same or functionality or better
  • not used by current systems
  • will soon be replaced by something else altogether
  • was archived for historical reasons.
  • when suppliers stop supporting it
+8
source

"" , , , .

, , .

+6

Micheal Feathers, " ", , .

+5

, , , .

. , "" , .

, , - .

- , , - legacy, , .

+5

, , , , , , , , .

+4

" " , , . , - , .

+1

-, - . , , , , , . , ?

, , , , , . , . , - . , . , , .

+1

" ". , , , , - , , .

. " "

+1

, , , .

, 5-6 (, ). , , .

0

.:)

...

, ,

MIA

... .

0
  • , , .
  • .
0

- , , , .

, , , "".

0

, , . , , , , , . , , .

, .

0

I do not know any real indicators that can be used to determine whether something is "obsolete code" or not, but something older than just written can be considered a legacy. Outdated code means different things to different people / organizations, so it really is somewhat subjective.

-1
source

All Articles