Software Practice and Experience · 2019 · 21 citations · 27 references
ComputingDesignSoftware EngineeringSystems ArchitectureSystems DesignSoftware DesignSoftware EvolutionSoftware MaintenanceSoftware MetricsSoftware RefactoringSoftware ReuseCode SmellsDesign Pattern ReuseDesign PatternsEmergenceMetricsReusable Design PatternsSoftware Project MetricsSource Code Evolution
Design patterns are reusable solutions to common software problems, while bad smells are code symptoms indicating potential structural issues; literature suggests they can co‑occur during system evolution. The study investigates co‑occurrence of design patterns and bad smells and identifies factors driving their relationship. The authors conducted a case study on five Java systems to examine whether design patterns reduce bad smells, map their co‑occurrences, and identify contributing situations. The study found that design patterns do not always prevent bad smells; modular patterns like composite, factory method, and singleton can aid quality, whereas adapter‑command, proxy, and state‑strategy frequently co‑occur with bad smells due to poor planning and misuse.
Summary A design pattern is a general reusable solution to commonly recurring problems in software projects. Bad smells are symptoms existing in the source code that possibly indicate the presence of a structural problem that requires code refactoring. Although design pattern and bad smells be different concepts, literature has shown that they may be related and cooccur during the evolution of a software system. This paper presents an empirical study that investigates cooccurrences of design patterns and bad smells as well as identifies the main factors that contribute to the emergence of the relationship between them. We carried out a case study with five Java systems to: (1) investigate if the use of design pattern reduces bad smell occurrence, (2) identify cooccurrences of design patterns and bad smells, and (3) identify situations that contribute for the cooccurrence emergence. As the main result, we found that the application of design pattern not necessarily avoid bad smell occurrences. The results also show that some design patterns such as composite, factory method, and singleton, are intrinsically modular and might be useful in creating high‐quality systems. However, other design patterns such as adapter‐command, proxy, and state‐strategy, have presented high cooccurrence frequency with bad smells; therefore, they require attention in their implementation. Finally, via manual inspection in the components with cooccurrence, we found that the identified cooccurrences appeared due to poor planning and inadequate application of design patterns.
27
Dynamic itemset counting and implication rules for market basket data
Sergey Brin, Rajeev Motwani, Jeffrey D. Ullman et al. · ACM SIGMOD Record · 1997 · 611 citations · Full text
The Qualitas Corpus: A Curated Collection of Java Code for Empirical Studies
Ewan Tempero, Craig Anslow, Jens Dietrich et al. · 2010 · 416 citations · Full text