首页 | 本学科首页   官方微博 | 高级检索  
     

软件中代码注释质量问题研究综述
引用本文:王潮,徐卫伟,周明辉.软件中代码注释质量问题研究综述[J].软件学报,2024,35(2):513-531.
作者姓名:王潮  徐卫伟  周明辉
作者单位:北京大学 计算机学院, 北京 100871
基金项目:国家自然科学基金(61825201)
摘    要:代码注释作为辅助软件开发群体协作的关键机制,被开发者所广泛使用以提升开发效率.然而,由于代码注释并不直接影响软件运行,使其常被开发者忽视,导致出现代码注释质量问题,进而影响开发效率.代码注释中存在的质量问题会影响开发者理解相关代码,甚至可能产生误解从而引入代码缺陷,因此这一问题受到研究者的广泛关注.采用系统文献调研,对近年来国内外学者在代码注释质量问题上的研究工作进行系统的分析.从代码注释质量的评价维度、度量指标以及提升策略这3个方面总结研究现状,并提出当前研究所存在的不足、挑战及建议.

关 键 词:代码注释  软件文档  自然语言处理  机器学习
收稿时间:2022/7/24 0:00:00
修稿时间:2022/12/24 0:00:00

Survey on Quality of Software Code Comments
WANG Chao,XU Wei-Wei,ZHOU Ming-Hui.Survey on Quality of Software Code Comments[J].Journal of Software,2024,35(2):513-531.
Authors:WANG Chao  XU Wei-Wei  ZHOU Ming-Hui
Affiliation:School of Computer Science, Peking University, Beijing 100871, China
Abstract:As an essential mechanism of group collaboration in software development, code comments are widely used by developers to improve the efficiency of specific developing tasks. However, code comments do not directly affect the software operation, and developers often ignore them, which leads to poor quality of code comments and affects development efficiency. Quality issues of code comments hinder code understanding, bring misunderstanding, or even introduce bugs, which receive widespread attention from researchers. This study systematically analyzes the research work of global scholars on quality issues of code comments in recent years by literature review. It also summarizes related studies in three aspects: evaluation dimensions of code comment quality, indicators of code comment quality, and strategies to promote code comment quality and points out shortcomings, challenges, and suggestions for the current research.
Keywords:code comment  software documentation  natural language processing  machine learning
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号