five

Empirical Study of the Relationship between Design Patterns and Code Smells

收藏
NIAID Data Ecosystem2026-03-11 收录
下载链接:
https://zenodo.org/record/3629575
下载链接
链接失效反馈
官方服务:
资源简介:
Software systems are often developed in such a way that good practices in the object-oriented paradigm are not met, causing the occurrence of specific disharmonies which are sometimes called code smells. Design patterns catalogue best practices for developing object-oriented software systems. Although code smells and design patterns are widely divergent, there might be a co-occurrence relation between them. The objective of this paper is to empirically evaluate if the presence of design patterns is related to the presence of code smells at different granularity levels. We performed an empirical replication study using 20 design patterns and 13 code smells in ten small-size to medium-size, open-source Java-based systems. We applied statistical analysis and association rules. Results confirm that classes participating in design patterns have less smell-proneness and smell frequency than classes not participating in design patterns. We also noticed that every design pattern category act in the same way in terms of smell-proneness in the subject systems. However, we observed, based on the association rules learning and the proposed validation technique, that some patterns may be linked with certain smells in some cases. For instance, Command patterns can co-occur with God Class, Blob and External Duplication smell. The published data set contains the following: List of the selected systems (source code files) The P-MARt: the design pattern repository as XML for the selected systems.  Data of design patterns and code smells: We processed this data by parsing the design pattern XML file and running the smell detection tool (inFusion). The data of the data mining analysis.
创建时间:
2020-01-29
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作