Refactoring is widely recognized as one of the efficient techniques to manage technical debt and maintain a healthy software project through enforcing best design practices or coping with design defects. Previous refactoring surveys have shown that code refactoring activities are mainly executed by developers who have sufficient knowledge of the system's design and disposing of leadership roles in their development teams. However, these surveys were mainly limited to specific projects and companies. In this paper, we explore the generalizability of the previous results by analyzing 800 open-source projects. We mine their refactoring activities, and we identify their corresponding contributors. Then, we associate an experience score to each contributor in order to test various hypotheses related to whether developers with higher scores tend to 1) perform a higher number of refactoring operations 2) exhibit different motivations behind their refactoring, and 3) better document their refactoring activity. We found that (1) although refactoring is not restricted to a subset of developers, those with higher contribution scores tend to perform more refactorings than others; (2) while there is no correlation between experience and motivation behind refactoring, top contributed developers are found to perform a wider variety of refactoring operations, regardless of their complexity; and (3) top contributed developer tend to document less their refactoring activity. Our qualitative analysis of three randomly sampled projects shows that the developers who are responsible for the majority of refactoring activities are typically in advanced positions in their development teams, demonstrating their extensive knowledge of the design of the systems they contribute to.
翻译:重组被公认为通过实施最佳设计做法或应对设计缺陷来管理技术债务和保持健康软件项目的有效技术之一。先前的重组调查表明,代码重组活动主要由对系统设计和处理其发展团队领导角色具有足够知识的开发者执行,然而,这些调查主要局限于特定项目和公司。在本文件中,我们通过分析800个开放源项目来探讨以往结果的可概括性。我们对其重组活动进行埋设,并找出相应的贡献者。然后,我们将经验评分与每个贡献者联系起来,以测试与以下有关的各种假设:高分开发者是否倾向于(1)执行更多重构操作(2)的动机不同,其重新构图背后的动机也不同,3)更好地记录其再构图活动。我们发现,尽管重新构图并不局限于开发者的一个子集,而贡献较高分数的开发者往往比其他项目要进行更多的再构图;(2)虽然重新构图后的经验和动力之间没有关联,但高级贡献者通常的开发者在进行更复杂的设计活动中,他们的高级设计团队在进行更复杂的设计活动中,他们的高级设计活动需要更广泛的再分析。