Some Misconceptions About Lines of Code

  • Authors:
  • J. Rosenberg

  • Affiliations:
  • -

  • Venue:
  • METRICS '97 Proceedings of the 4th International Symposium on Software Metrics
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

Source lines of code (SLOC) is perhaps the oldest of software metrics, and still a benchmark for evaluating new ones. Despite the extensive experience with the SLOC metric, there are still a number of misconceptions about it. This paper addresses three of them: (1) that the format of SLOC is relevant to how to properly count it (a simple experiment shows that, in fact, it does not matter), (2) that SLOC is most useful as a predictor of software quality (in fact, it is most useful as a covariate of other predictors), and (3) that there is an important inverse relationship between defect density and code size (in fact, this is an arithmetic artifact of plotting bugs-per-SLOC against SLOC).