arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.09528cs.SE
收藏

帮我理解这个提交!——情境化代码审查的愿景

Help Me to Understand this Commit! -- A Vision for Contextualized Code Reviews

Michael Unterkalmsteiner, Deepika Badampudi, Ricardo Britto, Nauman bin Ali

AI总结:

本文针对现代代码审查中代码理解支持不足的问题,通过分类53篇论文并结合审查者需求,提出了情境化代码审查环境的愿景,以提升审查有效性并降低开发者认知负荷。

摘要:

背景:现代代码审查(MCR)是交付高质量软件和开发者间知识共享的关键组件。有效的审查需要对代码有深入的理解,并要求审查者从不同视角将变更情境化。目的:尽管有大量支持开发者理解已更改代码的研究,我们观察到许多研究仅提供狭隘、专门的见解,且很少有以有意义方式聚合信息的研究。因此,我们旨在提供改进MCR中代码理解的愿景。方法:我们对53篇提出改进MCR代码理解建议的研究论文进行了分类。我们利用该分类、先前研究中代码审查者表达的需求,以及文献中未发现的信息进行外推。结果:我们识别了四种主要类型的支持系统,并建议了一个情境化代码审查的环境。此外,我们用一组场景说明了该环境将如何提升代码审查的有效性。结论:当前研究主要集中于为开发者提供狭隘支持。我们概述了如何通过使用情境和降低开发者的认知负荷来改进MCR的愿景。我们希望我们的愿景能促进开发环境的未来进步。

英文摘要:

Background: Modern Code Review (MCR) is a key component for delivering high-quality software and sharing knowledge among developers. Effective reviews require an in-depth understanding of the code and demand from the reviewers to contextualize the change from different perspectives. Aim: While there is a plethora of research on solutions that support developers to understand changed code, we have observed that many provide only narrow, specialized insights and very few aggregate information in a meaningful manner. Therefore, we aim to provide a vision of improving code understanding in MCR. Method: We classified 53 research papers suggesting proposals to improve MCR code understanding. We use this classification, the needs expressed by code reviewers from previous research, and the information we have not found in the literature for extrapolation. Results: We identified four major types of support systems and suggest an environment for contextualized code reviews. Furthermore, we illustrate with a set of scenarios how such an environment would improve the effectiveness of code reviews. Conclusions: Current research focuses mostly on providing narrow support for developers. We outline a vision for how MCR can be improved by using context and reducing the cognitive load on developers. We hope our vision can foster future advancements in development environments.

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

↑