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

后端 未结 30 2531
無奈伤痛
無奈伤痛 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 09:39

    To paraphrase a quote I read about 25 years ago,

    "The problem with using lines of code as a metric is it measures the complexity of the solution, not the complexity of the problem".

    I believe the quote is from David Parnas in an article in the Journal of the ACM.

提交回复
热议问题