与AI助手协同开发是否带来更可维护的代码?一项注册报告
Does Co-Development with AI Assistants Lead to More Maintainable Code? A Registered Report
AI总结:
本研究通过两阶段受控实验,评估AI助手对软件可维护性的影响,采用贝叶斯分析比较完成时间、感知生产力、代码质量与测试覆盖率。
摘要:
[背景/情境] GitHub Copilot等AI助手正在改变软件工程领域;多项研究已强调其带来的生产力提升。然而,它们对代码质量(尤其是可维护性方面)的影响仍需进一步探究。[目标/目的] 本研究旨在考察AI助手对软件可维护性的影响,具体评估这些工具如何影响开发者演进代码的能力。[方法] 我们将开展一项包含两个阶段的受控实验,涉及专业开发者。在第一阶段,开发者将为一个Java项目添加新功能,部分开发者使用AI助手,部分不使用。第二阶段为随机对照试验,将由另一组开发者在无AI助手的情况下演进第一阶段随机选出的项目。我们将采用贝叶斯分析来评估完成时间、感知生产力、代码质量和测试覆盖率方面的差异。
英文摘要:
[Background/Context] AI assistants like GitHub Copilot are transforming software engineering; several studies have highlighted productivity improvements. However, their impact on code quality, particularly in terms of maintainability, requires further investigation. [Objective/Aim] This study aims to examine the influence of AI assistants on software maintainability, specifically assessing how these tools affect the ability of developers to evolve code. [Method] We will conduct a two-phased controlled experiment involving professional developers. In Phase 1, developers will add a new feature to a Java project, with or without the aid of an AI assistant. Phase 2, a randomized controlled trial, will involve a different set of developers evolving random Phase 1 projects - working without AI assistants. We will employ Bayesian analysis to evaluate differences in completion time, perceived productivity, code quality, and test coverage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。