loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
14th Working Conference on Reverse Engineering (WCRE 2007)
Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes
Vancouver, BC, Canada
October 28-October 31
ISBN: 0-7695-3034-6
Comments are valuable especially for program under- standing and maintenance, but do developers comment their code? To which extent do they add comments or adapt them when they evolve the code? We examine the question whether source code and associated comments are really changed together along the evolutionary history of a soft- ware system. In this paper, we describe an approach to map code and comments to observe their co-evolution over mul- tiple versions. We investigated three open source systems (i.e., ArgoUML, Azureus, and JDT Core) and describe how comments and code co-evolved over time. Some of our find- ings show that: 1) newly added code--despite its growth rate--barely gets commented; 2) class and method decla- rations are commented most frequently but far less, for ex- ample, method calls; and 3) that 97% of comment changes are done in the same revision as the associated source code change.
Citation:
Beat Fluri, Michael W?, Harald C. Gall, "Do Code and Comments Co-Evolve? On the Relation between Source Code and Comment Changes," wcre, pp.70-79, 14th Working Conference on Reverse Engineering (WCRE 2007), 2007
Usage of this product signifies your acceptance of the Terms of Use.