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

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

    They can be helpful to indicate the magnitude of an application - says nothing about quality! My point here is just that if you indicate you worked on an application with 1,000 lines and they have an application that is 500k lines (roughly), a potential employer can understand if you have large-system experience vs. small utility programming.

    I fully agree with warren that the number of lines of code you remove from a system is more useful than the lines you add.

提交回复
热议问题