| 本文已被:浏览 5718次 下载 7513次 |
 码上扫一扫! |
|
|
| 代码坏味的处理顺序 |
|
高原1,2, 刘辉1,3, 樊孝忠1, 牛振东1, 邵维忠3,4
|
|
1.北京理工大学 计算机学院,北京 100081;2.第二炮兵装备研究院,北京 100085;3.高可信软件技术教育部重点实验室(北京大学),北京 100871;4.北京大学 信息科学技术学院 软件研究所,北京 100871
|
|
| 摘要: |
| 选取了10 种具有代表性的代码坏味进行研究.从每种代码坏味的产生原因、症状、对软件的影响以及相应的处理这4 个方面进行分析,提出了一个代码坏味处理顺序的优先级.通过问卷调查和两个实验,对代码坏味处理顺序优先级进行了初步验证. |
| 关键词: 代码坏味 软件重构 处理顺序 软件维护 优先级 调度 |
| DOI:10.3724/SP.J.1001.2012.04152 |
| 分类号: |
| 基金项目:国家自然科学基金(61003065); 国家重点基础研究发展计划(973)(2011CB302604); 高等学校博士学科点专项科研基金(20101101120027); 新闻出版重大科技工程项目(GXTC-CZ-10015004/01); 北京理工大学优秀青年教师资助计划(2010Y0711) |
|
| Resolution Sequence of Bad Smells |
|
GAO Yuan1,2, LIU Hui1,3, FAN Xiao-Zhong1, NIU Zhen-Dong1, SHAO Wei-Zhong3,4
|
|
1.School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100081, China;2.The Second Artillery Equipment Research Institute, Beijing 100085, China;3.Key Laboratory of High Confidence Software Technologies of the Ministry of Education (Peking University), Beijing 100871, China;4.Software Institute, School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China
|
| Abstract: |
| This paper analyzes 10 kinds of typical bad smells in 4 aspects to recommend a resolution sequence: causes, symptom, influence and resolution. The resolution sequence has also been validated by a questionnaire survey and two experiments. |
| Key words: bad smell software refactoring resolution sequence software maintenance priority schedule |