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
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
甜美无剑应助xiaojin采纳,获得10
刚刚
刚刚
lalala发布了新的文献求助10
1秒前
火蓝应助棉花糖采纳,获得10
2秒前
3秒前
斯文败类应助CongCong0303采纳,获得10
3秒前
3秒前
3秒前
theverve发布了新的文献求助10
4秒前
zzz发布了新的文献求助30
4秒前
CC完成签到,获得积分10
4秒前
4秒前
4秒前
4秒前
hoshi1018完成签到,获得积分10
4秒前
lmyycl发布了新的文献求助10
5秒前
万能图书馆应助niko采纳,获得10
5秒前
5秒前
快乐的尔蝶完成签到,获得积分10
6秒前
6秒前
wanci应助wckow采纳,获得10
7秒前
义气的嘉熙完成签到,获得积分10
7秒前
小马甲应助动听的雁枫采纳,获得10
7秒前
lhd完成签到 ,获得积分10
8秒前
crx完成签到 ,获得积分10
8秒前
归尘发布了新的文献求助10
8秒前
10秒前
353851547crf发布了新的文献求助10
10秒前
10秒前
zzzz发布了新的文献求助10
11秒前
11秒前
11秒前
量子星尘发布了新的文献求助10
12秒前
美少叔叔完成签到 ,获得积分10
12秒前
13秒前
13秒前
君君应助CHINA_C13采纳,获得30
14秒前
懵懂的晓曼完成签到,获得积分10
14秒前
14秒前
ding应助niko采纳,获得10
14秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Iron toxicity and hematopoietic cell transplantation: do we understand why iron affects transplant outcome? 2000
List of 1,091 Public Pension Profiles by Region 1021
EEG in Childhood Epilepsy: Initial Presentation & Long-Term Follow-Up 500
Latent Class and Latent Transition Analysis: With Applications in the Social, Behavioral, and Health Sciences 500
On the application of advanced modeling tools to the SLB analysis in NuScale. Part I: TRACE/PARCS, TRACE/PANTHER and ATHLET/DYN3D 500
L-Arginine Encapsulated Mesoporous MCM-41 Nanoparticles: A Study on In Vitro Release as Well as Kinetics 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5473830
求助须知:如何正确求助?哪些是违规求助? 4575894
关于积分的说明 14355235
捐赠科研通 4503558
什么是DOI,文献DOI怎么找? 2467664
邀请新用户注册赠送积分活动 1455473
关于科研通互助平台的介绍 1429531