An Interactive and Dynamic Search-Based Approach to Software Refactoring Recommendations

被引:30
|
作者
Alizadeh, Vahid [1 ]
Kessentini, Marouane [2 ]
Mkaouer, Mohamed Wiem [3 ]
Ocinneide, Mel [4 ]
Ouni, Ali [5 ]
Cai, Yuanfang [6 ]
机构
[1] Univ Michigan, Dearborn, MI 48128 USA
[2] Univ Michigan, Dept Comp & Informat Sci, Dearborn, MI 48128 USA
[3] Rochester Inst Technol, B Thomas Golisano Coll Comp & Informat Sci, Software Engn Dept, Rochester, NY 14623 USA
[4] Univ Coll Dublin, Sch Comp Sci, Dublin 4, Ireland
[5] ETS, Montreal, PQ H3C 1K3, Canada
[6] Drexel Univ, Comp Sci, Philadelphia, PA 19104 USA
关键词
Manuals; Tools; Software quality; Maintenance engineering; Optimization; Electronic mail; Search-based software engineering; Refactoring; interactive optimization; software quality; MULTIOBJECTIVE EVOLUTIONARY ALGORITHMS; DEFECTS DETECTION; TOOLS;
D O I
10.1109/TSE.2018.2872711
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Successful software products evolve through a process of continual change. However, this process may weaken the design of the software and make it unnecessarily complex, leading to significantly reduced productivity and increased fault-proneness. Refactoring improves the software design while preserving overall functionality and behavior, and is an important technique in managing the growing complexity of software systems. Most of the existing work on software refactoring uses either an entirely manual or a fully automated approach. Manual refactoring is time-consuming, error-prone and unsuitable for large-scale, radical refactoring. On the other hand, fully automated refactoring yields a static list of refactorings which, when applied, leads to a new and often hard to comprehend design. Furthermore, it is difficult to merge these refactorings with other changes performed in parallel by developers. In this paper, we propose a refactoring recommendation approach that dynamically adapts and interactively suggests refactorings to developers and takes their feedback into consideration. Our approach uses NSGA-II to find a set of good refactoring solutions that improve software quality while minimizing the deviation from the initial design. These refactoring solutions are then analyzed to extract interesting common features between them such as the frequently occurring refactorings in the best non-dominated solutions. Based on this analysis, the refactorings are ranked and suggested to the developer in an interactive fashion as a sequence of transformations. The developer can approve, modify or reject each of the recommended refactorings, and this feedback is then used to update the proposed rankings of recommended refactorings. After a number of introduced code changes and interactions with the developer, the interactive NSGA-II algorithm is executed again on the new modified system to repair the set of refactoring solutions based on the new changes and the feedback received from the developer. We evaluated our approach on a set of eight open source systems and two industrial projects provided by an industrial partner. Statistical analysis of our experiments shows that our dynamic interactive refactoring approach performed significantly better than four existing search-based refactoring techniques and one fully-automated refactoring tool not based on heuristic search.
引用
下载
收藏
页码:932 / 961
页数:30
相关论文
共 50 条
  • [31] Untangling the Knot: Enabling Architecture Evolution with Search-Based Refactoring
    Ivers, James
    Seifried, Chris
    Ozkaya, Ipek
    IEEE 19TH INTERNATIONAL CONFERENCE ON SOFTWARE ARCHITECTURE (ICSA 2022), 2022, : 101 - 111
  • [32] Robustness in Search-Based Software Remodularization
    Amarjeet
    Chhabra, Jitender Kumar
    2017 INTERNATIONAL CONFERENCE ON INFOCOM TECHNOLOGIES AND UNMANNED SYSTEMS (TRENDS AND FUTURE DIRECTIONS) (ICTUS), 2017, : 611 - 615
  • [33] On the Use of Machine Learning and Search-Based Software Engineering for Ill-Defined Fitness Function: A Case Study on Software Refactoring
    Amal, Boukhdhir
    Kessentini, Marouane
    Bechikh, Slim
    Dea, Josselin
    Ben Said, Lamjed
    SEARCH-BASED SOFTWARE ENGINEERING, 2014, 8636 : 31 - 45
  • [34] A survey on search-based software design
    Raiha, Outi
    COMPUTER SCIENCE REVIEW, 2010, 4 (04) : 203 - 249
  • [35] Practitioner-Oriented Visualization in an Interactive Search-Based Software Test Creation Tool
    Marculescu, Bogdan
    Feldt, Robert
    Torkar, Richard
    2013 20TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2013), VOL 2, 2013, : 87 - 92
  • [36] A Search-Based Approach to Multi-view Clustering of Software Systems
    Saeidi, Amir M.
    Hage, Jurriaan
    Khadka, Ravi
    Jansen, Slinger
    2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2015, : 429 - 438
  • [37] Search-Based Parallel Refactoring Using Population-Based Direct Approaches
    Kilic, Hurevren
    Koc, Ekin
    Cereci, Ibrahim
    SEARCH BASED SOFTWARE ENGINEERING, 2011, 6956 : 271 - +
  • [38] Search-based Software Testing and Test Data Generation for a Dynamic Programming Language
    Mairhofer, Stefan
    Feldt, Robert
    Torkar, Richard
    GECCO-2011: PROCEEDINGS OF THE 13TH ANNUAL GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2011, : 1859 - 1866
  • [39] Special Issue on Search-Based Software Engineering
    Sarro, Federica
    Kessentini, Marouane
    Deb, Kalayanmoy
    IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2018, 22 (03) : 333 - 333
  • [40] Search-based software engineering for maintenance and reengineering
    Harman, Mark
    10th European Conference on Software Maintenance and Reengineering, Proceedings, 2006, : 309 - 309