Engineering Students' Experiences With ChatGPT to Generate Code for Disciplinary Programming

作者
Camilo Vieira,Jose L. De La Hoz,Alejandra J. Magana,David Restrepo
出处
期刊:Computer Applications in Engineering Education [Wiley]
卷期号:33 (6)
标识
DOI:10.1002/cae.70090
摘要

ABSTRACT Large Language Models (LLMs) are transforming several aspects of our lives, including text and code generation. Their potential as “copilots” in computer programming is significant, yet their effective use is not straightforward. Even experts may have to generate multiple prompts before getting the desired output, and the code generated may contain bugs that are difficult for novice programmers to identify and fix. Although some prompting methods have been shown to be effective, the primary approach still involves a trial‐and‐error process. This study explores mechanical engineering students' experiences after engaging with ChatGPT to generate code for the Finite Element Analysis (FEA) course, aiming to provide insights into integrating LLMs into engineering education. The course included a scaffolded progression for students to develop an understanding of MATLAB programming and the implementation of FEA algorithms. After that, the students engaged with ChatGPT to automatically generate a similar code and reflected on their experiences of using this tool. We designed this activity guided by the productive failure framework: since LLMs do not necessarily produce correct code from a single prompt, students would need to use these failures to give feedback, potentially increasing their own understanding of MATLAB coding and FEA. The results suggest that while students find ChatGPT useful for efficient code generation, they struggle to: (1) understand a more sophisticated algorithm compared to what they had experienced in class; (2) find and fix bugs in the generated code; (3) learn about disciplinary concepts while they are also trying to fix the code; and (4) identify effective prompting strategies to instruct the ChatGPT how to complete the task. While LLMs show promise in supporting coding tasks for both professionals and students, using them requires strong background knowledge. When integrated into disciplinary courses, LLMs do not replace the need for effective pedagogical strategies. Our approach involved implementing a use‐modify‐create sequence, culminating in a productive failure activity where students engaged in conversations with the LLM encountered desirable difficulties. Our findings suggest that students faced challenges in trying to get a correct working code for FEA, and felt like they were teaching the model, which in some cases, led to some frustration. Thus, future research should explore additional forms of support and guidance to address these issues.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
YTZ完成签到,获得积分10
刚刚
刚刚
1秒前
Aline完成签到,获得积分10
1秒前
2秒前
在水一方应助蛋卷采纳,获得10
2秒前
Owen应助二愣子采纳,获得30
2秒前
3秒前
小水蜜桃发布了新的文献求助10
3秒前
小马甲应助Elara采纳,获得10
4秒前
4秒前
Blassom发布了新的文献求助10
4秒前
榕俊完成签到,获得积分10
4秒前
小马甲应助Nic采纳,获得10
4秒前
4秒前
lchenbio发布了新的文献求助10
5秒前
wenyh发布了新的文献求助30
5秒前
Frank完成签到,获得积分0
5秒前
神勇冬莲完成签到,获得积分10
6秒前
6秒前
6秒前
cai完成签到 ,获得积分10
6秒前
6秒前
小小应助xuxuxuxu采纳,获得50
7秒前
7秒前
NexusExplorer应助笑笑笑笑笑采纳,获得10
7秒前
Alex完成签到,获得积分10
7秒前
7秒前
WNL发布了新的文献求助80
8秒前
霜幕发布了新的文献求助10
8秒前
8秒前
Lau完成签到,获得积分10
8秒前
一念初见发布了新的文献求助10
8秒前
KIORking发布了新的文献求助10
8秒前
木可西完成签到,获得积分10
9秒前
无知发布了新的文献求助10
9秒前
orixero应助稳重绿海采纳,获得10
9秒前
星辰大海应助和谐的发箍采纳,获得10
10秒前
上官若男应助lcj采纳,获得10
10秒前
healer发布了新的文献求助10
10秒前
高分求助中
Adhesion Science: Principles & Practice 1234
Signals, Systems, and Signal Processing 610
Introduction to Cosmetic Formulation and Technology, 2nd Edition 400
Petrology and Plate Tectonics,2025 400
Burger's Medicinal Chemistry and Drug Discovery 400
Programming for Chemical Engineers Using C, C++, and MATLAB 320
Birth of Twins After Genome Editing for HIV Resistance 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6691078
求助须知:如何正确求助?哪些是违规求助? 8434337
关于积分的说明 18020776
捐赠科研通 5918416
什么是DOI,文献DOI怎么找? 2985016
邀请新用户注册赠送积分活动 1960939
关于科研通互助平台的介绍 1899846