谁来偿还技术债务?自固定式TD的实证研究
Does it matter who pays back Technical Debt? An empirical study of self-fixed TD
摘要:
背景:技术债务(TD)可以由那些产生它的人或其他人偿还。我们称前者为自修复TD,它可能特别有效,因为开发人员是自己代码的专家,非常适合修复相应的TD问题。目的:本研究的目的是探讨自我固定技术债务,特别是自我固定技术债务的程度,哪种类型的技术债务更容易自我固定,自我固定技术债务的修复时间是否短于非自我固定技术债务,以及开发行为与自我固定技术债务的关系。方法:我们报告了一项实证研究,分析了五种类型的TD(即,代码,缺陷,设计,文档和测试),通过静态分析捕获,从Apache软件基金会的20个Python和16个Java项目中获得的44,000多个提交中。结果如下:结果表明,约有一半的固定问题是自我固定的,包含TD问题被自我固定的可能性与项目规模,开发人员的数量和总问题呈负相关。而且,自我固定与非自我固定问题的生存时间无显著差异。此外,开发人员更热衷于在涉及较低代码级别的问题时偿还自己的TD,例如,缺陷债和代码债。最后,对项目更专注或更了解的开发人员有助于更高的自我修复TD的机会。结论:这些结果可以通过帮助TD补救活动的优先级排序和开发团队内的改进策略,以及通过通知TD管理工具的开发,使研究人员和从业人员受益。
英文摘要:
Context: Technical Debt (TD) can be paid back either by those that incurred it or by others. We call the former self-fixed TD, and it can be particularly effective, as developers are experts in their own code and are well-suited to fix the corresponding TD issues. Objective: The goal of our study is to investigate self-fixed technical debt, especially the extent in which TD is self-fixed, which types of TD are more likely to be self-fixed, whether the remediation time of self-fixed TD is shorter than non-self-fixed TD and how development behaviors are related to self-fixed TD. Method: We report on an empirical study that analyzes the self-fixed issues of five types of TD (i.e., Code, Defect, Design, Documentation and Test), captured via static analysis, in more than 44,000 commits obtained from 20 Python and 16 Java projects of the Apache Software Foundation. Results: The results show that about half of the fixed issues are self-fixed and that the likelihood of contained TD issues being self-fixed is negatively correlated with project size, the number of developers and total issues. Moreover, there is no significant difference of the survival time between self-fixed and non-self-fixed issues. Furthermore, developers are more keen to pay back their own TD when it is related to lower code level issues, e.g., Defect Debt and Code Debt. Finally, developers who are more dedicated to or knowledgeable about the project contribute to a higher chance of self-fixing TD. Conclusions: These results can benefit both researchers and practitioners by aiding the prioritization of TD remediation activities and refining strategies within development teams, and by informing the development of TD management tools.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。