本文提出并计划通过准实验研究检验两个对立理论:自动代码建议可能因无关建议降低有经验开发者的生产力,但可能通过减少新手陷入困境的挫败感而提升其生产力,并采用 IDE 监控、屏幕录制和生理数据测量进行验证。
摘要:
背景。基于人工智能的开发工具(如 GitHub Copilot)正通过提供实时代码建议改变软件开发过程。这些工具承诺通过降低认知负荷和加快任务完成速度来提高生产力。然而,此前的探索性研究表明,开发者有时会觉得自动建议具有侵入性,因此他们感觉自己的生产力反而下降了。理论。我们针对自动建议对挫败感和生产力的影响提出了两个理论。第一,我们假设有经验的开发者会因自动建议(主要是无关建议)而感到挫败,这也会对其生产力产生负面影响。第二,我们推测新手开发者能从自动建议中受益,因为自动建议减少了他们因陷入技术难题而产生的挫败感,从而提高了生产力。目标。我们计划开展一项准实验研究来检验上述理论。我们将收集的经验证据将使我们能够证实或否定这些理论。方法。我们将招募至少 32 名开发者,包括专家和新手。我们将要求每位开发者完成两项软件开发任务,一项启用自动建议,另一项禁用自动建议,以便进行被试内比较。我们将通过 IDE 插件和屏幕录制监控开发者的操作来测量自变量和因变量。此外,我们还将通过可穿戴设备收集生理数据。我们将使用统计假设检验来研究处理条件(即启用/禁用自动建议)对结果(挫败感和生产力)的影响。
英文摘要:
Context. AI-based development tools, such as GitHub Copilot, are transforming the software development process by offering real-time code suggestions. These tools promise to improve the productivity by reducing cognitive load and speeding up task completion. Previous exploratory studies, however, show that developers sometimes perceive the automatic suggestions as intrusive. As a result, they feel like their productivity decreased. Theory. We propose two theories on the impact of automatic suggestions on frustration and productivity. First, we hypothesize that experienced developers are frustrated from automatic suggestions (mostly from irrelevant ones), and this also negatively impacts their productivity. Second, we conjecture that novice developers benefit from automatic suggestions, which reduce the frustration caused from being stuck on a technical problem and thus increase their productivity. Objective. We plan to conduct a quasi-experimental study to test our theories. The empirical evidence we will collect will allow us to either corroborate or reject our theories. Method. We will involve at least 32 developers, both experts and novices. We will ask each of them to complete two software development tasks, one with automatic suggestions enabled and one with them disabled, allowing for within-subject comparisons. We will measure independent and dependent variables by monitoring developers' actions through an IDE plugin and screen recording. Besides, we will collect physiological data through a wearable device. We will use statistical hypothesis tests to study the effects of the treatments (i.e., automatic suggestions enabled/disabled) on the outcomes (frustration and productivity).