近期,诸如 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.
Understanding the Impact of AI Code Assistants on Security API Usage: An Empirical Study
Centre for Research on Engineering Software Technologies (CREST) & Adelaide University, Australia(工程软件研究技术中心(CREST)及阿德莱德大学,澳大利亚);Edith Cowan University, Australia(埃德温·考文大学,澳大利亚);CSIRO’s Data61, Australia(CSIRO数据61,澳大利亚)
Forecasting Developer Environments with GenAI: A Research Perspective
The University of Osaka(大阪大学);Singapore Management University(新加坡管理大学);Zhejiang University(浙江大学);Heidelberg University(海德堡大学);University College London(伦敦大学学院);University of Auckland(奥克兰大学);University of Bari(巴里大学);Tianjin University(天津大学);University of Melbourne(墨尔本大学);Nara Institute of Science and Technology(奈良先端科学技术大学院大学);University of Victoria(维多利亚大学);Northern Arizona University(北亚利桑那大学)
Tokalator: A Context Engineering Toolkit for Artificial Intelligence Coding Assistants
Kariyer.net, R&D Center(Kariyer.net 研发中心);Stanford University and iLab, Stanford, CA, U.S.A.(斯坦福大学及iLab);Centre Tecnològic de Telecomunicacions de Catalunya (CTTC/CERCA)(加泰罗尼亚电信技术中心)
AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?
Key Lab of HCST (PKU), MOE(HCST关键实验室(PKU));School of Computer Science, Peking University, China(北京大学计算机科学学院);Columbia University, USA(哥伦比亚大学);Beijing Jiaotong University, China(北京交通大学);University of Texas at Dallas, USA(德克萨斯大学达拉斯分校);Hong Kong University of Science and Technology, Hong Kong SAR, China(香港科技大学);Fudan University Institute of Systems for Advanced Computing, Shanghai, China(复旦大学先进计算系统研究所);Simon Fraser University, Canada(西蒙弗雷泽大学);Shanghai Institute of Systems for Open Computing, Shanghai, China(上海开放计算系统研究所)