arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.17739cs.AIcs.HC
收藏

扩大的鸿沟:生成式人工智能对新手程序员的好处与危害

The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmers

Abilene Christian University(阿比林基督教大学);Aalto University(阿尔托大学);Temple University(天普大学);University College Dublin(都柏林大学学院)

James Prather, Brent Reeves, Juho Leinonen, Stephen MacNeil, Arisoa S. Randrianasolo, Brett Becker, Bailey Kimmel, Jared Wright, Ben Briggs

AI总结:

本研究通过实验室观察发现,生成式AI对新手程序员的影响呈两极分化:加速者受益,而挣扎者元认知困难加剧,并产生能力错觉,据此提出脚手架设计建议。

摘要:

新手程序员常常因缺乏元认知意识和策略而在编程问题解决中挣扎。先前的研究表明,新手在编程过程中可能会遇到多种元认知困难。新手通常意识不到这些困难如何阻碍他们的进步。与此同时,许多新手现在使用生成式人工智能(GenAI)进行编程,GenAI可以为大多数入门编程问题提供完整解决方案、代码建议、卡住时的下一步提示,并解释晦涩的错误信息。其对新手元认知的影响才刚刚开始被探索。在此,我们重复了一项先前关于新手编程问题解决行为的研究,并通过纳入GenAI工具对其进行扩展。通过21次实验室会议,包括参与者观察、访谈和眼动追踪,我们探索了新手如何使用GenAI工具进行编码。尽管21名学生中有20名完成了指定的编程问题,但我们的研究结果显示,在使用GenAI工具的学生中,加速者与挣扎者之间存在令人遗憾的分化。加速者能够利用GenAI生成他们本已打算编写的代码,并能忽略无用或不正确的内联代码建议。但对于挣扎者,我们的研究结果表明,先前已知的元认知困难持续存在,而GenAI不幸地加剧了这些困难,甚至引入了新的元认知困难。此外,挣扎的学生常常对自己的问题解决能力表现出认知失调,认为自己表现优于实际,并最终产生能力错觉。基于对两组学生的观察,我们提出了为新手GenAI体验搭建脚手架的方法,并为未来工作提出建议。

英文摘要:

Novice programmers often struggle through programming problem solving due to a lack of metacognitive awareness and strategies. Previous research has shown that novices can encounter multiple metacognitive difficulties while programming. Novices are typically unaware of how these difficulties are hindering their progress. Meanwhile, many novices are now programming with generative AI (GenAI), which can provide complete solutions to most introductory programming problems, code suggestions, hints for next steps when stuck, and explain cryptic error messages. Its impact on novice metacognition has only started to be explored. Here we replicate a previous study that examined novice programming problem solving behavior and extend it by incorporating GenAI tools. Through 21 lab sessions consisting of participant observation, interview, and eye tracking, we explore how novices are coding with GenAI tools. Although 20 of 21 students completed the assigned programming problem, our findings show an unfortunate divide in the use of GenAI tools between students who accelerated and students who struggled. Students who accelerated were able to use GenAI to create code they already intended to make and were able to ignore unhelpful or incorrect inline code suggestions. But for students who struggled, our findings indicate that previously known metacognitive difficulties persist, and that GenAI unfortunately can compound them and even introduce new metacognitive difficulties. Furthermore, struggling students often expressed cognitive dissonance about their problem solving ability, thought they performed better than they did, and finished with an illusion of competence. Based on our observations from both groups, we propose ways to scaffold the novice GenAI experience and make suggestions for future work.

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

↑