arrow
Return

Monitor-Based Instant Software Refactoring

delete2013-08-01
delete40
PRE
AI
刘辉 cover
刘辉 (Hui Liu) *
X
Xue Xun Guo
W
Weizhong Shao
DOI:10.1109/TSE.2013.4delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Software refactoring
code smell detection
monitor
instant refactoring
Feature requests-based recommendation of software refactorings
err2020-08-28
err22
PREAI
errNyamawe, Ally S.; Liu, Hui; Niu, Nan; Umer, Qasim; Niu, Zhendong
errShare
errSave
errShare
errSave
Assessing the Refactorability of Software Clones
err2015-11-01
err59
PREAI
errTsantalis, Nikolaos; Mazinanian, Davood; Krishnan, Giri Panamoottil
errShare
errSave
An empirical study to improve software security through the application of code refactoring
err2018-04-01
err43
PREAI
errMumtaz, Haris; Alshayeb, Mohammad; Mahmood, Sajjad; Niazi, Mahmood
errShare
errSave
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
errShare
errSave
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
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

Peking University cover
Peking University
Scholars:
9.2K
Papers: 2.8K
Citations: 7.1W
Beijing Institute of Technology cover
Beijing Institute of Technology
Scholars:
7.8K
Papers: 2.3K
Citations: 3.6W
Cited Papers

Cited Papers

Identification of refactoring opportunities introducing polymorphism
err2010-03-01
err41
PREAI
errTsantalis, Nikolaos; Chatzigeorgiou, Alexander
errShare
errSave
errShare
errSave
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
errShare
errSave
Identification of Move Method Refactoring Opportunities
err2009-05-01
err274
PREAI
errTsantalis, Nikolaos; Chatzigeorgiou, Alexander
errShare
errSave
How We Refactor, and How We Know It
err2012-01-01
err327
PREAI
errMurphy-Hill, Emerson; Parnin, Chris; Black, Andrew P.
errShare
errSave
researcher View more