arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.03790cs.SEcs.HC
收藏

评估开发者对代码可读性看法的共识

Assessing Consensus of Developers' Views on Code Readability

Agnia Sergeyuk, Olga Lvova, Sergey Titov, Anastasiia Serova, Farid Bagirov, Timofey Bryksin

AI总结:

本文通过调查10名经验相近的Java开发者,评估其对代码可读性评价的共识,发现显著一致性及相关代码特征,为LLM对齐开发者可读性感知提供依据。

摘要:

Large Language Models(LLM,大语言模型)的迅速崛起改变了软件开发,Copilot、JetBrains AI Assistant等工具提升了开发者的生产力。然而,开发者如今花在审查代码上的时间多于编写代码,这凸显了Code Readability(代码可读性)对代码理解的重要性。我们此前的研究发现,现有代码可读性模型在表征开发者观念方面并不准确,并揭示开发者之间共识较低,表明需要对该领域开展进一步研究。在此基础上,我们调查了10名具有相似编码经验的Java开发者,以评估他们在代码可读性评价及相关方面的共识。我们发现开发者在代码可读性评价上存在显著一致,并识别出与代码可读性强相关的具体代码方面。总体而言,本研究阐明了LLM语境下的代码可读性,为这些模型如何契合开发者对代码可读性的感知提供了洞见,从而增强AI时代的软件开发。

英文摘要:

The rapid rise of Large Language Models (LLMs) has changed software development, with tools like Copilot, JetBrains AI Assistant, and others boosting developers' productivity. However, developers now spend more time reviewing code than writing it, highlighting the importance of Code Readability for code comprehension. Our previous research found that existing Code Readability models were inaccurate in representing developers' notions and revealed a low consensus among developers, highlighting a need for further investigations in this field. Building on this, we surveyed 10 Java developers with similar coding experience to evaluate their consensus on Code Readability assessments and related aspects. We found significant agreement among developers on Code Readability evaluations and identified specific code aspects strongly correlated with Code Readability. Overall, our study sheds light on Code Readability within LLM contexts, offering insights into how these models can align with developers' perceptions of Code Readability, enhancing software development in the AI era.

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

↑