What makes code legacy?

后端 未结 21 1933
说谎
说谎 2020-12-13 02:04

I have heard many developers refer to code as \"legacy\". Most of the time it is code that has been written by someone who no longer works on the project. What is it that ma

相关标签:
21条回答
  • 2020-12-13 02:45

    Any code with support (or documentation) missing. Be it:

    • inline comments
    • technical documentation
    • spoken documentation (the person who wrote it)
    • unit tests documenting the workings of the code
    0 讨论(0)
  • 2020-12-13 02:46

    Preserving legacy code is not so much an academic ideal as it is keeping code that works, no matter how poorly. In many conservative enterprise situations, that would be considered more practical than throwing it away and starting again from scratch. Better the devil you know...

    0 讨论(0)
  • 2020-12-13 02:47

    It's often any code that isn't written in the trendy scripting language du jour, and I'm only half joking.

    0 讨论(0)
提交回复
热议问题