arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08424cs.SE
收藏

探索多编程语言提交及其对软件质量的影响:对Apache项目的实证研究

Exploring Multi-Programming-Language Commits and Their Impacts on Software Quality: An Empirical Study on Apache Projects

Zengyang Li, Xiaoxiao Qi, Qinyi Yu, Peng Liang, Ran Mo, Chen Yang

AI总结:

本研究通过对18个Apache项目的197,566次提交进行实证分析,发现多编程语言提交(MPLCs)显著增加开发复杂度、延长问题解决时间并引入更多缺陷,从而降低软件质量。

摘要:

背景:现代软件系统(如Apache Spark)通常由多种编程语言(PL)编写。对于涉及修改多种编程语言编写的源文件的多编程语言提交(MPLCs)现象,目前了解甚少。目的:本研究旨在探索MPLCs及其对开发难度和软件质量的影响。方法:我们对18个非平凡的Apache项目进行了实证研究,共包含197,566次提交。结果:(1)最常用的编程语言组合包含所有四种语言,即C/C++、Java、JavaScript和Python;(2)所有项目中9%的提交是MPLCs,且83%的项目中MPLCs的比例趋于相对稳定的水平;(3)所有项目中超过90%的MPLCs涉及两种编程语言的源文件;(4)MPLCs的变更复杂度显著高于非MPLCs;(5)在89%的项目中,修复MPLCs相关问题的耗时显著长于修复非MPLCs相关问题;(6)MPLCs对问题重新打开没有显著影响;(7)经历MPLCs的源文件往往更容易出现缺陷;(8)MPLCs引入的缺陷多于非MPLCs。结论:MPLCs与开发难度增加和软件质量下降相关。

英文摘要:

Context: Modern software systems (e.g., Apache Spark) are usually written in multiple programming languages (PLs). There is little understanding on the phenomenon of multi-programming-language commits (MPLCs), which involve modified source files written in multiple PLs. Objective: This work aims to explore MPLCs and their impacts on development difficulty and software quality. Methods: We performed an empirical study on eighteen non-trivial Apache projects with 197,566 commits. Results: (1) the most commonly used PL combination consists of all the four PLs, i.e., C/C++, Java, JavaScript, and Python; (2) 9% of the commits from all the projects are MPLCs, and the proportion of MPLCs in 83% of the projects goes to a relatively stable level; (3) more than 90% of the MPLCs from all the projects involve source files in two PLs; (4) the change complexity of MPLCs is significantly higher than that of non-MPLCs; (5) issues fixed in MPLCs take significantly longer to be resolved than issues fixed in non-MPLCs in 89% of the projects; (6) MPLCs do not show significant effects on issue reopen; (7) source files undergoing MPLCs tend to be more bug-prone; and (8) MPLCs introduce more bugs than non-MPLCs. Conclusions: MPLCs are related to increased development difficulty and decreased software quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑