| 引用本文: | 田迎晨,李柯君,王太明,焦青青,李光杰,张宇霞,刘辉.代码坏味研究综述.软件学报,2023,34(1):150-170 |
| |
|
| 摘要: |
| 代码坏味(code smells)是低质量的急需重构的代码片段. 代码坏味是软件工程领域的一个研究热点, 并且相关研究方向众多、时间跨度大、研究成果丰富. 为梳理相关研究思路和研究成果、分析研究热点并预判未来研究方向, 对1990年至2020年6月间发表的代码坏味相关的339篇论文进行了系统地分析和归类, 对代码坏味的发展趋势进行了分析与统计, 量化揭示了相关研究的主流与热点. 揭示了学术界关注的关键代码坏味, 并研究了工业界与学术界的关注点的差异及其影响. |
| 关键词: 代码坏味 软件重构 软件质量 度量 缺陷 |
| DOI:10.13328/j.cnki.jos.006431 |
| 分类号: |
| 基金项目:国家自然科学基金重大项目(61690205); 国家自然科学基金面上项目(61772071) |
|
| Survey on Code Smells |
|
TIAN Ying-Chen1, LI Ke-Jun1, WANG Tai-Ming1, JIAO Qing-Qing1, LI Guang-Jie2, ZHANG Yu-Xia1, LIU Hui1
|
|
1.School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100081, China;2.Management Department of Collaborative Innovation, National Innovation Institute of Defense Technology, Academy of Military Sciences, Beijing 100097, China
|
| Abstract: |
| Code smells are low-quality code snippets that are in urgent need of refactoring. Code smell is a research hotspot in software engineering, with many related research topics, large time span, and rich research results. To sort out the relevant research approach and results, analyze the research hotspots, and predict the future research directions, this study systematically analyzes and classifies 339 papers related to code smell published from 1990 to June 2020. The development trend of code smells is analyzed and counted, the mainstream and hot spots of related research are quantitatively revealed, the key code smells concerned by the academia are identified, and also the differences of concerns between industry and academia are studied. |
| Key words: code smells software refactoring software quality metric defect |