arrow
返回

Monitor-Based Instant Software Refactoring

delete2013-08-01
delete40
PRE
AI
刘辉 封面图
刘辉 (Hui Liu) *
X
Xue Xun Guo
W
Weizhong Shao
DOI:10.1109/TSE.2013.4delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Software refactoring is an effective method for improvement of software quality while software external behavior remains unchanged. To facilitate software refactoring, a number of tools have been proposed for code smell detection and/or for automatic or semi-automatic refactoring. However, these tools are passive and human driven, thus making software refactoring dependent on developers' spontaneity. As a result, software engineers with little experience in software refactoring might miss a number of potential refactorings or may conduct refactorings later than expected. Few refactorings might result in poor software quality, and delayed refactorings may incur higher refactoring cost. To this end, we propose a monitor-based instant refactoring framework to drive inexperienced software engineers to conduct more refactorings promptly. Changes in the source code are instantly analyzed by a monitor running in the background. If these changes have the potential to introduce code smells, i.e., signs of potential problems in the code that might require refactorings, the monitor invokes corresponding smell detection tools and warns developers to resolve detected smells promptly. Feedback from developers, i.e., whether detected smells have been acknowledged and resolved, is consequently used to optimize smell detection algorithms. The proposed framework has been implemented, evaluated, and compared with the traditional human-driven refactoring tools. Evaluation results suggest that the proposed framework could drive inexperienced engineers to resolve more code smells (by an increase of 140 percent) promptly. The average lifespan of resolved smells was reduced by 92 percent. Results also suggest that the proposed framework could help developers to avoid similar code smells through timely warnings at the early stages of software development, thus reducing the total number of code smells by 51 percent.
Keyword:
Software refactoring
code smell detection
monitor
instant refactoring
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
Assessing the Refactorability of Software Clones评估软件克隆的可重构性
err2015-11-01
err59
PREAI
errTsantalis, Nikolaos; Mazinanian, Davood; Krishnan, Giri Panamoottil
err分享
err收藏
AutoRefactoring: A platform to build refactoring agents自动因子: 构建重构代理的平台
err2015-02-01
err15
PREAI
errdos Santos Neto, Baldoino Fonseca; Ribeiro, Marcio; da Silva, Viviane Torres; Braga, Christiano; Pereira de Lucena, Carlos Jose; Costa, Evandro de Barros
err分享
err收藏
Composite refactoring: Representations, characteristics and effects on software projects复合重构: 软件项目的表征、特征和影响
err2023-04-01
err2
PREAI
errBibiano, Ana Carla; Uchoa, Anderson; Assuncao, Wesley K. G.; Tenorio, Daniel; Colanzi, Thelma E.; Vergilio, Silvia Regina; Garcia, Alessandro
err分享
err收藏

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
3.0K
被引数:
1.3W

机构

北京大学 封面图
北京大学
学者数:
9.2K
论文数: 2.8K
被引数: 7.1W
北京理工大学 封面图
北京理工大学
学者数:
7.8K
论文数: 2.3K
被引数: 3.6W
引用论文

引用论文

err分享
err收藏
Effect of Nematode and Fungal Treatments on Nontarget Turfgrass-Inhabiting Arthropod and Nematode Populations
err2001-04-01
err0
errOAAI
errY. Wang; R. L. Crocker; L. T. Wilson; G. Smart; X. Wei; W. T. Nailon; P. P. Cobb
err分享
err收藏
err分享
err收藏
学者 查看更多内容