沟通和代码依赖对软件代码质量的影响--基于Herbsleb假说的实证分析
Communication and Code Dependency Effects on Software Code Quality: An Empirical Analysis of Herbsleb Hypothesis
摘要:
先前的文献表明,在许多项目中,80%或更多的贡献是由大约20%的开发团队的一个小团体做出的。大多数先前的研究都不赞成依赖这样一个小的内部“英雄”群体,认为这会导致发展和沟通的瓶颈。尽管如此,这样的项目在开源项目中非常常见。那么,“英雄”对代码质量的影响到底是什么呢?Herbsleb认为,如果代码是强连接的,而他们的开发人员不是,那么代码将是错误的。为了测试Hersleb假设,我们开发并应用了两个度量标准:(a)“社会性”和(b)“英雄性”,它们衡量(a)一个开发人员对另一个开发人员的问题发表了多少评论;以及(b)一个开发人员对另一个开发人员的代码进行了多少修改(“英雄”是那些在系统中修改代码最多的人)。在支持Hersleb假设的结果中,在超过1000个开源项目中,我们发现“社会性”比“英雄性”在统计学上更能反映代码质量(bug数量)。因此,我们说,关于“英雄”价值的争论是微妙的误导。我们的研究结果表明,这些所谓的“英雄”的真正好处与其说是他们生成的代码,不如说是当一个大型社区的程序员之间的交互通过一小群集中的开发人员时所需的通信模式。换句话说,为了构建更好的代码,在核心开发人员和其他人之间建立更好的沟通流。为了让其他研究人员确认/改进/反驳我们的结果,我们所有的脚本和数据都可以在https://github.com/Anonymous633671/A-Comparison-on-Communication-and-Code-Dependency-Effects-on-Software-Code-Quality上在线获得。
英文摘要:
Prior literature has suggested that in many projects 80\% or more of the contributions are made by a small called group of around 20% of the development team. Most prior studies deprecate a reliance on such a small inner group of "heroes", arguing that it causes bottlenecks in development and communication. Despite this, such projects are very common in open source projects. So what exactly is the impact of "heroes" in code quality? Herbsleb argues that if code is strongly connected yet their developers are not, then that code will be buggy. To test the Hersleb hypothesis, we develop and apply two metrics of (a) "social-ness'"and (b) "hero-ness" that measure (a) how much one developer comments on the issues of another; and (b) how much one developer changes another developer's code (and "heroes" are those that change the most code, all around the system). In a result endorsing the Hersleb hypothesis, in over 1000 open source projects, we find that "social-ness" is a statistically stronger indicate for code quality (number of bugs) than "hero-ness". Hence we say that debates over the merits of "hero-ness" is subtly misguided. Our results suggest that the real benefits of these so-called "heroes" is not so much the code they generate but the pattern of communication required when the interaction between a large community of programmers passes through a small group of centralized developers. To say that another way, to build better code, build better communication flows between core developers and the rest. In order to allow other researchers to confirm/improve/refute our results, all our scripts and data are available, on-line at https://github.com/Anonymous633671/A-Comparison-on-Communication-and-Code-Dependency-Effects-on-Software-Code-Quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。