Loading [a11y]/accessibility-menu.js
An Interactive and Dynamic Search-Based Approach to Software Refactoring Recommendations | IEEE Journals & Magazine | IEEE Xplore

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


Abstract:

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, ...Show More

Abstract:

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 rece...
Published in: IEEE Transactions on Software Engineering ( Volume: 46, Issue: 9, 01 September 2020)
Page(s): 932 - 961
Date of Publication: 30 September 2018

ISSN Information:

Funding Agency:


Contact IEEE to Subscribe

References

References is not available for this document.