• DocumentCode
    2513947
  • 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
  • fYear
    2011
  • fDate
    22-23 Sept. 2011
  • Firstpage
    137
  • Lastpage
    146
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Empirical Software Engineering and Measurement (ESEM), 2011 International Symposium on
  • Conference_Location
    Banff, AB
  • ISSN
    1938-6451
  • Print_ISBN
    978-1-4577-2203-5
  • Type

    conf

  • DOI
    10.1109/ESEM.2011.22
  • Filename
    6092562