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

后端 未结 30 2487
無奈伤痛
無奈伤痛 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:44

    When you are refactoring a code base and can show that you removed lines of code, and all the regression tests still passed.

提交回复
热议问题