ERIC Number: EJ1480021
Record Type: Journal
Publication Date: 2025-Sep
Pages: 31
Abstractor: As Provided
ISBN: N/A
ISSN: ISSN-0007-1013
EISSN: EISSN-1467-8535
Available Date: 2025-04-21
The Impact of GenAI-Enabled Coding Hints on Students' Programming Performance and Cognitive Load in an SRL-Based Python Course
Anna Y. Q. Huang1; Cheng-Yan Lin1; Sheng-Yi Su1; Stephen J. H. Yang1
British Journal of Educational Technology, v56 n5 p1942-1972 2025
Programming education often imposes a high cognitive burden on novice programmers, requiring them to master syntax, logic, and problem-solving while simultaneously managing debugging tasks. Prior knowledge is a critical factor influencing programming learning performance. A lack of foundational knowledge limits students' self-regulated learning (SRL) abilities, resulting in a performance gap between students with high and low levels of prior knowledge. To address this problem, this study developed CodeFlow Assistant (CFA), a specifically developed generative artificial intelligence (GenAI) tool that provides four levels of scaffolding guidance (flowcharts, cloze coding, basic coding solutions, and advanced coding solutions) to support novice programmers in mastering skills ranging from foundational understanding to advanced application. Through a controlled experiment comparing SRL-based, teaching assistant (TA)-assisted programming (SRLP-TA) and SRL-based, CFA-assisted programming (SRLP-CFA), this study evaluated the effect of CFA on coding performance, cognitive loads, and SRL abilities among novice programming students. The results indicated that compared with the SRLP-TA group, the SRLP-CFA group achieved statistically significantly higher coding scores but showed comparable improvements in understanding programming concepts. Moreover, CFA reduced intrinsic and extraneous cognitive loads while enhancing germane load, fostering deeper knowledge integration and engagement. These findings highlight the role of CFA in enhancing coding performance, particularly in translating conceptual understanding into practice. This tool also statistically significantly improved SRL abilities, such as intrinsic goal orientation, task value, and metacognitive self-regulation.
Descriptors: Artificial Intelligence, Technology Uses in Education, Coding, Programming, Programming Languages, Cognitive Processes, Difficulty Level, Independent Study, Computer Science Education, Prior Learning, Scaffolding (Teaching Technique), Flow Charts, Novices, Scores, Transfer of Training, Goal Orientation, Metacognition
Wiley. Available from: John Wiley & Sons, Inc. 111 River Street, Hoboken, NJ 07030. Tel: 800-835-6770; e-mail: cs-journals@wiley.com; Web site: https://www.wiley.com/en-us
Publication Type: Journal Articles; Reports - Research
Education Level: N/A
Audience: N/A
Language: English
Sponsor: N/A
Authoring Institution: N/A
Grant or Contract Numbers: N/A
Author Affiliations: 1Department of Computer Science and Information Engineering, National Central University, Taoyuan City, Taiwan, ROC

Peer reviewed
Direct link
