The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmers
Top Cited Papers
Open Access
- 12 August 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 469-486
Abstract
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, such as forming incorrect conceptual models of the problem or having a false sense of progress after testing their solution. 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 did and did not struggle. Some students who did not struggle were able to use GenAI to accelerate, creating 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.Keywords
All Related Versions
This publication has 62 references indexed in Scilit:
- Impact of AI assistance on student agencyComputers & Education, 2023
- Generative AI in Computing Education: Perspectives of Students and Instructors2023
- iTrace-Toolkit: A Pipeline for Analyzing Eye-Tracking Data of Software Engineering Studies2023
- From Novice to Expert: Analysis of Token Level Effects in a Longitudinal Eye Tracking Study2021
- A theory of instruction for introductory programming skillsComputer Science Education, 2019
- Eye tracking in computing education2014
- A qualitative think-aloud study of novice programmers' code writing strategies2014
- Self-efficacy and mental models in learning to program2004
- Effects of beliefs about the nature of knowledge on comprehension.Journal of Educational Psychology, 1990
- Motivated Strategies for Learning Questionnaire1990