skip to main content

Incidence of code smells in the application of design patterns: a method-level analysis

Assunção, Ederson ; Souza, Rodrigo

Proceedings of the XIII Brazilian Symposium on Software Components, Architectures, and Reuse, 2019, p.73-82

New York, NY, USA: ACM

Texto completo disponível

Citações Citado por
  • Título:
    Incidence of code smells in the application of design patterns: a method-level analysis
  • Autor: Assunção, Ederson ; Souza, Rodrigo
  • Assuntos: Software and its engineering -- Software organization and properties -- Software system structures -- Abstraction, modeling and modularity
  • É parte de: Proceedings of the XIII Brazilian Symposium on Software Components, Architectures, and Reuse, 2019, p.73-82
  • Descrição: Design patterns are reusable solutions that can be applied to solve specific problems in software design. Such patterns can be misapplied, though, and give rise to code smells, i.e., fragments in the code that indicate possible design flaws. In this study, we aim to understand how often code smells co-occur with design patterns, as well as to determine the most common co-occurrences. To this end, we identified instances of code smells and design patterns in methods of 25 open source Java projects, by using automated detection tools. We also manually inspected fragments of the projects' source code to gather insight on the relationship between specific pairs of smells and patterns. Among other findings, we found that methods that are part of the Adapter pattern are more likely to contain code smells, especially the Feature Envy smell, although it can be argued that the detection of this smell in this context is a false positive.
  • Editor: New York, NY, USA: ACM
  • Idioma: Inglês

Buscando em bases de dados remotas. Favor aguardar.