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

AI驱动的编程助手距离满足开发者需求还有多远?

How far are AI-powered programming assistants from meeting developers' needs?

Xin Tan, Xiao Long, Xianjun Ni, Yinghao Zhu, Jing Jiang, Li Zhang

AI总结:

该研究通过模拟真实开发场景并招募27名学生,评估了三种流行AI编程助手工具的有效性,发现其普遍提升任务完成率与代码质量,但效果受任务性质和用户经验影响,并揭示了推荐代码的修改原因与用户期望。

摘要:

近期,诸如 GitHub Copilot 等 IDE 内 AI 编程助手工具(ACATs)显著影响了开发者的编码习惯。尽管已有部分研究考察了其有效性,但仍缺乏对实际辅助过程的深入调查。为弥补这一空白,我们模拟了包含三种典型软件开发任务的真实开发场景,并招募了 27 名计算机科学专业学生,以调查他们使用三种流行 ACATs 的行为。我们的目标是全面评估 ACATs 的有效性,探索推荐代码的特征,确定修改原因,并理解用户面临的挑战与期望。为开展研究,我们开发了一个实验平台,该平台包含一个用于 VSCode IDE 的数据收集插件,并提供屏幕录制、代码评估以及自动生成个性化访谈和调查问卷的功能。通过对收集数据的分析,我们发现 ACATs 普遍能提高任务完成率、缩短时间、提升代码质量并增加自我感知的生产力。然而,这种改善受编码任务性质和用户经验水平的影响。值得注意的是,对于经验丰富的参与者,使用 ACATs 甚至可能增加完成时间。我们观察到,“编辑行补全”是最频繁的推荐方式,而“注释补全”和“字符串补全”的接受率最低。修改推荐代码的主要原因是输出格式与要求不一致、逻辑缺陷以及代码风格不统一。在挑战与期望方面,除功能和性能外,参与者还关注服务访问和帮助文档的优化。我们的研究为 ACATs 的有效性和可用性提供了有价值的见解,为其设计和实现的进一步改进提供了参考。

英文摘要:

Recent In-IDE AI coding assistant tools (ACATs) like GitHub Copilot have significantly impacted developers' coding habits. While some studies have examined their effectiveness, there lacks in-depth investigation into the actual assistance process. To bridge this gap, we simulate real development scenarios encompassing three typical types of software development tasks and recruit 27 computer science students to investigate their behavior with three popular ACATs. Our goal is to comprehensively assess ACATs' effectiveness, explore characteristics of recommended code, identify reasons for modifications, and understand users' challenges and expectations. To facilitate the study, we develop an experimental platform that includes a data collection plugin for VSCode IDE and provides functions for screen recording, code evaluation, and automatic generation of personalized interview and survey questions. Through analysis of the collected data, we find that ACATs generally enhance task completion rates, reduce time, improve code quality, and increase self-perceived productivity. However, the improvement is influenced by both the nature of coding tasks and users' experience level. Notably, for experienced participants, the use of ACATs may even increase completion time. We observe that "edited line completion" is the most frequently recommended way, while "comments completion" and "string completion" have the lowest acceptance rates. The primary reasons for modifying recommended code are disparities between output formats and requirements, flawed logic, and inconsistent code styles. In terms of challenges and expectations, optimization of service access and help documentation is also concerned by participants except for functionality and performance. Our study provides valuable insights into the effectiveness and usability of ACATs, informing further improvements in their design and implementation.

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

↑