When, if ever, is “number of lines of code” a useful metric?

后端 未结 30 2530
無奈伤痛
無奈伤痛 2020-12-08 09:32

Some people claim that code\'s worst enemy is its size, and I tend to agree. Yet every day you keep hearing things like

  • I write blah lines of code in a day.
30条回答
  •  生来不讨喜
    2020-12-08 10:02

    It is a very usefull idea when it is associated with the number of defects. "Defects" gives you a measure of code quality. The least "defects" the better the software; It is nearly impossible to remove all defects. In many occasions, a single defect could be harmfull and fatal.

    However, it does not seem that nondefective software exists.

提交回复
热议问题