Code comment quality analysis and improvement recommendation: An automated approach
Program comprehension is one of the first and mostfrequently performed activities during software maintenance and evolution. In aprogram, there are not only source code, but also comments. Comments in aprogram is one of the main sources of information for program comprehension. Ifa program has good...
Saved in:
Main Authors: | , , , , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2016
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/3604 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
Summary: | Program comprehension is one of the first and mostfrequently performed activities during software maintenance and evolution. In aprogram, there are not only source code, but also comments. Comments in aprogram is one of the main sources of information for program comprehension. Ifa program has good comments, it will be easier for developers to understand it.Unfortunately, for many software systems, due to developers’ poor coding styleor hectic work schedule, it is often the case that a number of methods andclasses are not written with good comments. This can make it difficult fordevelopers to understand the methods and classes, when they are performingfuture software maintenance tasks. To deal with this problem, in this paper wepropose an approach which assesses the quality of a code comment and generatessuggestions to improve comment quality. A user study is conducted to assess theeffectiveness of our approach and the results show that our comment qualityassessments are similar to the assessments made by our user study participants,the suggestions provided by our approach are useful to improve comment quality,and our approach can improve the accuracy of the previous comment qualityanalysis approaches. |
---|