arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.01407cs.SE
收藏

迈向代码评审支持的去偏置

Towards debiasing code review support

Tobias Jetzen, Xavier Devroey, Nicolas Matton, Benoît Vanderose

AI总结:

本文针对代码评审中的认知偏置问题,设计了覆盖确认偏置和决策疲劳的原型,并通过可用性测试和用户体验问卷验证其有效性,为在现有工具中实现去偏置支持提供了初步方案。

摘要:

认知偏置会出现在代码评审过程中。它们显著影响反馈的生成以及开发者对反馈的理解方式。这些偏置可能导致不合逻辑的推理和决策,从而违背支持代码评审的一个主要假设:开发者能够对代码进行准确且客观的评估。本文探讨了代码评审期间由认知偏置引起的有害案例,以及避免此类案例或减轻其影响的潜在解决方案。特别地,我们设计了多个原型,涵盖确认偏置和决策疲劳。我们采用以开发者为中心的设计方法,通过开展可用性测试,并使用用户体验问卷(UEQ)和参与者反馈对原型进行验证。我们表明,某些技术可以实现在现有的代码评审工具中,因为它们被评审者很好地接受,并有助于防止对代码评审有害的行为。这项工作为处理代码评审中的认知偏置提供了一个坚实的初步方法。

英文摘要:

Cognitive biases appear during code review. They significantly impact the creation of feedback and how it is interpreted by developers. These biases can lead to illogical reasoning and decision-making, violating one of the main hypotheses supporting code review: developers' accurate and objective code evaluation. This paper explores harmful cases caused by cognitive biases during code review and potential solutions to avoid such cases or mitigate their effects. In particular, we design several prototypes covering confirmation bias and decision fatigue. We rely on a developer-centered design approach by conducting usability tests and validating the prototype with a user experience questionnaire (UEQ) and participants' feedback. We show that some techniques could be implemented in existing code review tools as they are well accepted by reviewers and help prevent behavior detrimental to code review. This work provides a solid first approach to treating cognitive bias in code review.

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

↑