The comment density of open source software code

The development processes of open source software are different from traditional closed source development processes. Still, open source software is frequently of high quality. Thus, we are investigating how open source software creates high quality and whether it can maintain this quality for ever larger project sizes. In this paper, we look at one particular quality indicator, the density of comments in open source software code. In a large-scale study of more than 5,000 projects, we find that active open source projects document their source code, and we find that the comment density is independent of team and project size, but not of project age. In future work, we intend to correlate comment density with project success or failure.

[1]  Harald C. Gall,et al.  Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes , 2007, 14th Working Conference on Reverse Engineering (WCRE 2007).

[2]  Lutz Prechelt,et al.  An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl for a search/string-processing program , 2000 .

[3]  Mahmoud O. Elish,et al.  The Adherence of Open Source Java Programmers to Standard Coding Practices , 2002 .

[4]  Dirk Riehle,et al.  Estimating Commit Sizes Efficiently , 2009, OSS.

[5]  Dirk Riehle,et al.  The Commit Size Distribution of Open Source Software , 2009 .

[6]  Harvey P. Siy,et al.  Does the modern code inspection have value? , 2001, Proceedings IEEE International Conference on Software Maintenance. ICSM 2001.

[7]  David Lorge Parnas,et al.  Software aging , 1994, Proceedings of 16th International Conference on Software Engineering.

[8]  Marius Sundbakken,et al.  Assessing the maintainability of C++ source code , 2001 .

[9]  Shari Lawrence Pfleeger,et al.  Software Metrics : A Rigorous and Practical Approach , 1998 .

[10]  Dirk Riehle,et al.  Continuous Integration in Open Source Software Development , 2008, OSS.

[11]  Dirk Riehle,et al.  The Total Growth of Open Source , 2008, OSS.

[12]  Diomidis Spinellis A tale of four kernels , 2008, 2008 ACM/IEEE 30th International Conference on Software Engineering.