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

基于代码评审推荐代码可理解性改进

Recommending Code Understandability Improvements based on Code Reviews

Delano Oliveira

摘要:

开发人员花费70%的时间来理解代码。易于阅读的代码可以节省时间,而难以阅读的代码可能会导致引入错误。然而,很难确定是什么让代码更容易理解。尽管有关于提高代码可理解性的指南和指令,但在某些情况下,这些实践可能会产生不利影响。实际的软件开发项目经常使用代码审查来提高代码质量,包括可理解性。评审者通常是对项目有广泛贡献的高级开发人员,他们对不同解决方案对代码可理解性的影响有深入的了解。本文是一个早期的研究建议,建议基于代码评审知识的代码可理解性改进。该提案的核心包括从代码审查中提取的代码可理解性改进的数据集。该数据集将作为训练机器学习系统的基础,以推荐可理解性改进。

英文摘要:

Developers spend 70% of their time understanding code. Code that is easy to read can save time, while hard-to-read code can lead to the introduction of bugs. However, it is difficult to establish what makes code more understandable. Although there are guides and directives on improving code understandability, in some contexts, these practices can have a detrimental effect. Practical software development projects often employ code review to improve code quality, including understandability. Reviewers are often senior developers who have contributed extensively to projects and have an in-depth understanding of the impacts of different solutions on code understandability. This paper is an early research proposal to recommend code understandability improvements based on code reviewer knowledge. The core of the proposal comprises a dataset of code understandability improvements extracted from code reviews. This dataset will serve as a basis to train machine learning systems to recommend understandability improvements.

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

↑