skip to main content
Primo Search
Search in: Busca Geral

MORE: A multi‐objective refactoring recommendation approach to introducing design patterns and fixing code smells

Ouni, Ali ; Kessentini, Marouane ; Ó Cinnéide, Mel ; Sahraoui, Houari ; Deb, Kalyanmoy ; Inoue, Katsuro

Journal of software : evolution and process, 2017-05, Vol.29 (5), p.n/a [Periódico revisado por pares]

Chichester, UK: John Wiley & Sons, Ltd

Texto completo disponível

Citações Citado por
  • Título:
    MORE: A multi‐objective refactoring recommendation approach to introducing design patterns and fixing code smells
  • Autor: Ouni, Ali ; Kessentini, Marouane ; Ó Cinnéide, Mel ; Sahraoui, Houari ; Deb, Kalyanmoy ; Inoue, Katsuro
  • Assuntos: code smells ; design patterns ; Object-oriented programming ; refactoring ; Search algorithms ; search‐based software engineering ; Software engineering ; software quality ; Source code
  • É parte de: Journal of software : evolution and process, 2017-05, Vol.29 (5), p.n/a
  • Descrição: Refactoring is widely recognized as a crucial technique applied when evolving object‐oriented software systems. If applied well, refactoring can improve different aspects of software quality including readability, maintainability, and extendibility. However, despite its importance and benefits, recent studies report that automated refactoring tools are underused much of the time by software developers. This paper introduces an automated approach for refactoring recommendation, called MORE, driven by 3 objectives: (1) to improve design quality (as defined by software quality metrics), (2) to fix code smells, and (3) to introduce design patterns. To this end, we adopt the recent nondominated sorting genetic algorithm, NSGA‐III, to find the best trade‐off between these 3 objectives. We evaluated the efficacy of our approach using a benchmark of 7 medium and large open‐source systems, 7 commonly occurring code smells (god class, feature envy, data class, spaghetti code, shotgun surgery, lazy class, and long parameter list), and 4 common design pattern types (visitor, factory method, singleton, and strategy). Our approach is empirically evaluated through a quantitative and qualitative study to compare it against 3 different state‐of‐the art approaches, 2 popular multiobjective search algorithms, and random search. The statistical analysis of the results confirms the efficacy of our approach in improving the quality of the studied systems while successfully fixing 84% of code smells and introducing an average of 6 design patterns. In addition, the qualitative evaluation shows that most of the suggested refactorings (an average of 69%) are considered by developers to be relevant and meaningful. This paper introduces a multiobjective search–based approach, named MORE, to improve software design quality. The proposed aims at introducing design pattern, while removing antipatterns and improving software quality metrics. The results show that MORE is able to significantly improve the overall software design quality while preserving the semantic coherence of the original design.
  • Editor: Chichester, UK: John Wiley & Sons, Ltd
  • Idioma: Inglês

Buscando em bases de dados remotas. Favor aguardar.