This Article 
 Bibliographic References 
 Add to: 
Using a Line–ofߝCode Metric to Understand Software Rework
January/February 2010 (vol. 27 no. 1)
pp. 72-77
Edmund Morozoff, Medtronic, Inc. , Mounds View
Developers should factor rework into sizing and productivity calculations when estimating software effort. Reworked code is software created during development that doesn't exist in the final build. Using lines of code as a sizing metric is helpful when estimating projects with similar domains, platforms, processes, development teams, and coding constraints. A simple method can measure new effective lines of code (nLOC)—that is, added, changed, or deleted nonblank, noncomment lines of code—during development. Analysis of three projects shows that between 19 and 40 percent of the code written wasn't in the final release, with the nLOC measured biweekly and accumulated over each project's development.

1. R.E. Fairley and M.J. Wilshire, "Iterative Rework: The Good, The Bad, and The Ugly," Computer, vol. 38, no. 9, pp. 34–41.
2. L.H. Putnam and W. Myers, Measures for Excellence: Reliable Software on Time, within Budget, Prentice-Hall, 1992.
3. C. Jones, Estimating Software Costs: Bringing Realism to Estimating, McGraw-Hill, 2007.
4. B. Kitchenham and E. Mendes, "Systematic Review of Software Productivity Measurement," Univ. of Auckland Dept. Computer Science, 2004;
5. B. Boehm et al., Software Cost Estimation with Cocomo II, Prentice-Hall, 2000.
6. R. Purushothaman and D.E. Perry, "Toward Understanding the Rhetoric of Small Source Code Changes," IEEE Trans. Software Eng., vol. 31, no. 6, 2005, pp. 511–526.
7. C. Larman and V.R. Basili, "Iterative and Incremental Development: A Brief History," Computer, vol. 36, no. 6, 2003, pp. 47–56.
8. M. Fowler et al., Refactoring: Improving the Design of Existing Code, Addison-Wesley, 1999.
9. B. Boehm, Software Engineering Economics, Prentice-Hall, 1981.

Index Terms:
lines of code, software productivity, software rework, software, software engineering
Edmund Morozoff, "Using a Line–ofߝCode Metric to Understand Software Rework," IEEE Software, vol. 27, no. 1, pp. 72-77, Jan.-Feb. 2010, doi:10.1109/MS.2009.160
Usage of this product signifies your acceptance of the Terms of Use.