代码技术债项生存性的进一步研究
Further Investigation of the Survivability of Code Technical Debt Items
摘要:
背景:技术债务(TD)讨论了为满足软件开发速度需求而做出的次优决策的负面影响。代码技术债务项(TDI)是TD的原子元素,可以在代码工件中观察到。开源系统的实证结果表明,代码气味,这只是一种类型的TDI,是如何引入和“生存”在发布周期。然而,关于代码气味的生存性的结果是否适用于其他类型的代码TDI(即,缺陷和漏洞)和工业环境中。目标:通过分析Apache基金会的两个工业案例和31个开源系统进行实证研究,了解代码TDI的生存能力。方法:我们分析了SonarQube检测到的133,670个代码TDI(35,703个来自工业系统)(193,196次提交),以使用生存性模型评估其生存性。结果如下:一般来说,代码TDI往往会在开源系统中保留并停留很长时间,而在工业系统中它们会更快地被删除。超过一定阈值的代码TDI往往会保持更长的时间,这证实了以前的结果。我们的研究结果还表明,bug往往会更快地被删除,而代码气味和漏洞往往会存活更长时间。
英文摘要:
Context: Technical Debt (TD) discusses the negative impact of sub-optimal decisions to cope with the need-for-speed in software development. Code Technical Debt Items (TDI) are atomic elements of TD that can be observed in code artefacts. Empirical results on open-source systems demonstrated how code-smells, which are just one type of TDIs, are introduced and "survive" during release cycles. However, little is known about whether the results on the survivability of code-smells hold for other types of code TDIs (i.e., bugs and vulnerabilities) and in industrial settings. Goal: Understanding the survivability of code TDIs by conducting an empirical study analysing two industrial cases and 31 open-source systems from Apache Foundation. Method: We analysed 133,670 code TDIs (35,703 from the industrial systems) detected by SonarQube (in 193,196 commits) to assess their survivability using survivability models. Results: In general, code TDIs tend to remain and linger for long periods in open-source systems, whereas they are removed faster in industrial systems. Code TDIs that survive over a certain threshold tend to remain much longer, which confirms previous results. Our results also suggest that bugs tend to be removed faster, while code smells and vulnerabilities tend to survive longer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。