• DocumentCode
    596047
  • Title

    // TODO: Help students improve commenting practices

  • Author

    DePasquale, P.J. ; Locasto, Michael E. ; Kaczmarczyk, L. ; Martinovic, Marijan

  • fYear
    2012
  • fDate
    3-6 Oct. 2012
  • Firstpage
    1
  • Lastpage
    6
  • Abstract
    One implicit purpose of writing software code is to communicate ideas. Commenting source code helps explain these ideas and provides background on the semantics of a program. Yet, enabling students to acquire good commenting practices remains difficult. Instructors can find it hard to meaningfully discuss such practices in both introductory and advanced undergraduate courses. Furthermore, comment grading is an imprecise, labor-intensive procedure at best. But just what practices should we be encouraging students to emulate? To help address these issues (learning about professional code commenting patterns and best practices, objectively grading student comments), we developed the COMTOR tool as an open source project and web service. COMTOR provides a platform for helping assess source code documentation in an objective, structured fashion. We conducted two experiments using COMTOR: one that examines a set of popular open-source Java code projects and one that measures a baseline of student-generated code comments. The latter are based on three semesters worth of data from two different undergraduate courses. Our aim is to extract knowledge about the state of professional practice in source code comments and how these properties vary over the lifetime of a project. We can then begin to make recommendations and communicate best practices (or a lack thereof) to our students.
  • Keywords
    Java; Web services; computer science education; educational courses; public domain software; system documentation; COMTOR tool; TODO; Web service; advanced undergraduate course; commenting practice; commenting source code; introductory undergraduate course; knowledge extraction; labor-intensive procedure; learning; open source project; open-source Java code project; professional code commenting pattern; program semantics; software code writing; source code documentation; student comment grading; student-generated code comment; Best practices; Documentation; Java; Open source software; Semantics;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Frontiers in Education Conference (FIE), 2012
  • Conference_Location
    Seattle, WA
  • ISSN
    0190-5848
  • Print_ISBN
    978-1-4673-1353-7
  • Electronic_ISBN
    0190-5848
  • Type

    conf

  • DOI
    10.1109/FIE.2012.6462504
  • Filename
    6462504