On the use of genetic programming for automated refactoring and the introduction of design patterns

Adam C. Jensen, Betty H. C. Cheng

2010 · 89 citations · 10 references

Concepts

TL;DR

Maintaining an object‑oriented design is difficult and time‑consuming, and prior automated refactoring methods only make small iterative changes, limiting the richness of strategies. This paper proposes an approach that supports composition of design changes and prioritizes the introduction of design patterns during refactoring. The method employs genetic programming guided by software engineering metrics to select the most suitable set of refactorings for a given design. The approach was demonstrated on a large collection of published models and a real‑world case study, showing its effectiveness.

Abstract

Maintaining an object-oriented design for a piece of software is a difficult, time-consuming task. Prior approaches to automated design refactoring have focused on making small, iterative changes to a given software design. However, such approaches do not take advantage of composition of design changes, thus limiting the richness of the refactoring strategies that they can generate. In order to address this problem, this paper introduces an approach that supports composition of design changes and makes the introduction of design patterns a primary goal of the refactoring process. The proposed approach uses genetic programming and software engineering metrics to identify the most suitable set of refactorings to apply to a software design. We illustrate the efficacy of this approach by applying it to a large set of published models, as well as a real-world case study

References

10