arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.10702cs.SE
收藏

ChatGPT: 何时在理解和修改陌生代码时是朋友还是敌人

ChatGPT: Friend or Foe When Comprehending and Changing Unfamiliar Code

University of Victoria(维多利亚大学);University of Zurich(苏黎世大学);University of Southampton(南安普顿大学);Pontifícia Universidade Católica do Rio Grande do Sul(南里奥格兰德天主教大学)

Norman Anderson, Tarek Alakmeh, Victoria Jackson, Guilherme Vaz Pereira, Umit Akirmak, Anthony Estey, Rafael Prikladnicki, Thomas Fritz, André van der Hoek, Margaret-Anne Storey

AI总结:

研究探讨了AI对开发者在编程任务中问题解决过程的影响,发现AI在某些情况下帮助解决问题,而在其他情况下阻碍了突破困境。

摘要:

一项探索性实验室研究调查了十名高级学生开发者(五名有AI支持,五名无)在扩展大型软件系统时的问题解决过程。通过Polya的四个问题解决阶段和25个归纳生成的代码,研究分析了AI如何影响开发者的问题解决方法及在受阻时的进展。意外发现,尽管AI组开发者频繁依赖AI工具,但所有问题解决行为均出现在两组中。九名参与者在工作中受阻,但受阻原因和突破方式存在差异。研究强调了七种不同的受阻原因,并指出AI在某些情况下有助于突破困境,而在其他情况下则阻碍了突破。

英文摘要:

A rapidly growing body of research is examining how LLMs influence developers when they code. To date, this research has tended to focus on productivity and code quality outcomes, rather than the underlying cognitive processes involved in programming. To address this gap, we report on the results of an exploratory laboratory study of ten advanced student developers (five with support from AI and five without) who had to make a non-trivial extension to a sizable software system. Leveraging Polya's four problem-solving phases and 25 inductively-generated codes detailing distinct problem-solving behaviors as the primary lenses, we examined: (1) how AI impacted the problem-solving approach the developers used to solve the programming task, and (2) how AI impacted their progress when they became stuck. For the analysis, we triangulated data across multiple sources (e.g., think-aloud, code changes, web searches, and LLM prompts). Unexpectedly, while developers in the AI group repeatedly turned to the AI tool to offload certain aspects of the process, all detailed problem-solving behaviors appeared in both groups. We also found that nine out of ten participants found themselves stuck in their work, but with key differences in how they became stuck and unstuck. We highlight seven distinct causes for being stuck and highlight how AI in some cases helped and in other cases hindered becoming unstuck.

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

↑