skip to main content
10.1145/1985441.1985482acmconferencesArticle/Chapter ViewAbstractPublication PagesicseConference Proceedingsconference-collections
research-article

Do comments explain codes adequately?: investigation by text filtering

Published:21 May 2011Publication History

ABSTRACT

Comment lines in the software source code include descriptions of codes, usage of codes, copyrights, unused codes, comments, and so on. It is required for comments to explain the content of written code adequately, since the wrong description in the comment may causes further bug and confusion in maintenance.

In this paper, we try to clarify a research question: "In which projects do comments describe the code adequately?" To answer this question, we selected the group 1 of mining challenge and used data obtained from Eclipse and Netbeans. Since it is difficult to answer the above question directly, we define the distance between codes and comments. By utilizing the fault-prone module prediction technique, we can answer the alternative question from the data of two projects. The result shows that Eclipse project has relatively adequate comments.

References

  1. P. Graham. Hackers and Painters: Big Ideas from the Computer Age, chapter 8, pages 121--129. O'Reilly Media, 2004.Google ScholarGoogle Scholar
  2. R. K. Lind and K. Vairavan. An experimental investigation of software metrics and their relationship to software development effort. IEEE Trans. Softw. Eng., 15(5):649--653, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. O. Mizuno and T. Kikuno. Training on errors experiment to detect fault-prone software modules by spam filter. In Proc. of 6th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on the foundations of software engineering, pages 405--414, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. J. Sliwerski, T. Zimmermann, and A. Zeller. When do changes induce fixes? (on Fridays.). In Proc. of 2nd International workshop on Mining software repositories, pages 24--28, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. L. Tan, D. Yuan, G. Krishna, and Y. Zhou. /* iComment: bugs or bad comments? */. In Proc. of SOSP'07, 10 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Do comments explain codes adequately?: investigation by text filtering

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      MSR '11: Proceedings of the 8th Working Conference on Mining Software Repositories
      May 2011
      260 pages
      ISBN:9781450305747
      DOI:10.1145/1985441

      Copyright © 2011 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 21 May 2011

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Upcoming Conference

      ICSE 2025

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader