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...

Full description

Saved in:
Bibliographic Details
Main Authors: SUN, Xiaobing, GENG, Qiang, David LO, DUAN, Yucong, LIU, Xiangyue, LI Bin
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
id sg-smu-ink.sis_research-4605
record_format dspace
spelling sg-smu-ink.sis_research-46052017-04-10T02:12:07Z Code comment quality analysis and improvement recommendation: An automated approach SUN, Xiaobing GENG, Qiang David LO, DUAN, Yucong LIU, Xiangyue LI Bin, 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. 2016-08-01T07:00:00Z text https://ink.library.smu.edu.sg/sis_research/3604 info:doi/10.1142/S0218194016500339 Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Program comprehension code comment quality analysis user study Computer Sciences Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Program comprehension
code comment quality analysis
user study
Computer Sciences
Software Engineering
spellingShingle Program comprehension
code comment quality analysis
user study
Computer Sciences
Software Engineering
SUN, Xiaobing
GENG, Qiang
David LO,
DUAN, Yucong
LIU, Xiangyue
LI Bin,
Code comment quality analysis and improvement recommendation: An automated approach
description 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.
format text
author SUN, Xiaobing
GENG, Qiang
David LO,
DUAN, Yucong
LIU, Xiangyue
LI Bin,
author_facet SUN, Xiaobing
GENG, Qiang
David LO,
DUAN, Yucong
LIU, Xiangyue
LI Bin,
author_sort SUN, Xiaobing
title Code comment quality analysis and improvement recommendation: An automated approach
title_short Code comment quality analysis and improvement recommendation: An automated approach
title_full Code comment quality analysis and improvement recommendation: An automated approach
title_fullStr Code comment quality analysis and improvement recommendation: An automated approach
title_full_unstemmed Code comment quality analysis and improvement recommendation: An automated approach
title_sort code comment quality analysis and improvement recommendation: an automated approach
publisher Institutional Knowledge at Singapore Management University
publishDate 2016
url https://ink.library.smu.edu.sg/sis_research/3604
_version_ 1770573344592101376