大语言模型时代的代码可读性:来自 Atlassian 的工业案例研究
Code Readability in the Age of Large Language Models: An Industrial Case Study from Atlassian
AI总结:
本文通过调查和对比 HULA 框架生成代码与人工代码的可读性,发现可读性在 LLM 时代依然关键,且 LLM 生成代码可读性与人工代码相当,有助于建立信任并推动平台采用。
摘要:
软件工程师在软件开发过程中会花费大量时间阅读代码,尤其是在大语言模型(LLMs)能够自动生成代码的时代。然而,关于 LLM 生成代码的可读性,以及在这一新时代中可读性从从业者视角来看是否仍然重要,目前知之甚少。在本文中,我们开展了一项调查,以探索从业者在大语言模型时代对代码可读性的看法,并通过将我们基于 LLM 的软件开发智能体框架 HULA 生成的代码与真实场景中人工编写的代码进行比较,来研究其可读性。总体而言,研究结果强调:(1)可读性仍然是软件开发的一个关键方面;(2)我们 LLM 生成代码的可读性与人工编写的代码相当,这有助于建立适当的信任,并推动我们由 LLM 驱动的软件开发平台的广泛采用。
英文摘要:
Software engineers spend a significant amount of time reading code during the software development process, especially in the age of large language models (LLMs) that can automatically generate code. However, little is known about the readability of the LLM-generated code and whether it is still important from practitioners' perspectives in this new era. In this paper, we conduct a survey to explore the practitioners' perspectives on code readability in the age of LLMs and investigate the readability of our LLM-based software development agents framework, HULA, by comparing its generated code with human-written code in real-world scenarios. Overall, the findings underscore that (1) readability remains a critical aspect of software development; (2) the readability of our LLM-generated code is comparable to human-written code, fostering the establishment of appropriate trust and driving the broad adoption of our LLM-powered software development platform.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。