Affiliation:
1. DGIGL, Polytechnique Montreal, Montreal, Canada
Abstract
Nowadays, modern applications are developed using components written in different programming languages and technologies. The cost benefits of reuse and the advantages of each programming language are two main incentives behind the proliferation of such systems. However, as the number of languages increases, so do the challenges related to the development and maintenance of these systems. In such situations, developers may introduce design smells (i.e., anti-patterns and code smells) which are symptoms of poor design and implementation choices. Design smells are defined as poor design and coding choices that can negatively impact the quality of a software program despite satisfying functional requirements. Studies on mono-language systems suggest that the presence of design smells may indicate a higher risk of future bugs and affects code comprehension, thus making systems harder to maintain. However, the impact of multi-language design smells on software quality such as fault-proneness is yet to be investigated.
In this article, we present an approach to detect multi-language design smells in the context of JNI systems. We then investigate the prevalence of those design smells and their impacts on fault-proneness. Specifically, we detect 15 design smells in 98 releases of 9 open-source JNI projects. Our results show that the design smells are prevalent in the selected projects and persist throughout the releases of the systems. We observe that, in the analyzed systems, 33.95% of the files involving communications between Java and C/C++ contain occurrences of multi-language design smells. Some kinds of smells are more prevalent than others, e.g.,
Unused Parameters
,
Too Much Scattering
, and
Unused Method Declaration
. Our results suggest that files with multi-language design smells can often be more associated with bugs than files without these smells, and that specific smells are more correlated to fault-proneness than others. From analyzing fault-inducing commit messages, we also extracted activities that are more likely to introduce bugs in smelly files. We believe that our findings are important for practitioners as it can help them prioritize design smells during the maintenance of multi-language systems.
Funder
Natural Sciences and Engineering Research Council of Canada
Publisher
Association for Computing Machinery (ACM)
Cited by
20 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. An exploratory study on just-in-time multi-programming-language bug prediction;Information and Software Technology;2024-11
2. Learning to Detect and Localize Multilingual Bugs;Proceedings of the ACM on Software Engineering;2024-07-12
3. Design smells in multi-language systems and bug-proneness: a survival analysis;Empirical Software Engineering;2024-07-03
4. Study of Code Smells: A Review and Research Agenda;International Journal of Mathematical, Engineering and Management Sciences;2024-06-01
5. Detection of Unused Native Methods code smells in Multi-Language Systems;2024 4th International Conference on Information Communication and Software Engineering (ICICSE);2024-05-10