Title :
How Good is Your Comment? A Study of Comments in Java Programs
Author :
Haouari, Dorsaf ; Sahraoui, Houari ; Langlais, Philippe
Author_Institution :
Dept. d´´Inf. et de Rech. Operationnelle, Univ. de Montreal, Montreal, QC, Canada
Abstract :
Comments are very useful to developers during maintenance tasks and are useful as well to help structuring a code at development time. They convey useful information about the system functionalities as well as the state of mind of a developer. Comments in code have been the focus of several studies, but none of them was targeted at analyzing commenting habits precisely. In this paper, we present an empirical study which analyzes existing comments in different open source Java projects. We study comments from both a quantitative and a qualitative point of view. We propose a taxonomy of comments that we used for conducting our analysis.
Keywords :
Java; public domain software; Java program comments; comment taxonomy; open source Java project; Context; Documentation; Java; Maintenance engineering; Measurement; Software reliability; Taxonomy; Comment distribution; comment content; comment frequency; comment relevance;
Conference_Titel :
Empirical Software Engineering and Measurement (ESEM), 2011 International Symposium on
Conference_Location :
Banff, AB
Print_ISBN :
978-1-4577-2203-5
DOI :
10.1109/ESEM.2011.22