arrow
返回

Does ChatGPT Help Novice Programmers Write Better Code? Results From Static Code Analysis

delete2024-01-01
delete2
delete
OA
AI
P
Philipp Haindl *
G
Gerald Weinberger
DOI:10.1109/ACCESS.2024.3445432delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
In the realm of AI-enhanced programming education, there is growing interest in using such tools to help students understand good coding principles. This study investigates the impact of ChatGPT on code quality among part-time undergraduate students in introductory Java programming courses, who lack prior Java experience. The source code of 16 students from the control group (without ChatGPT) and 22 students from the treatment group (with ChatGPT) who completed identical programming exercises focused on coding conventions was analyzed. Static code analysis tools assessed adherence to a common coding convention ruleset and calculated cyclomatic and cognitive complexity metrics. The comparative analysis shows that the ChatGPT-assisted group significantly improved code quality, with fewer rule violations and reduced cyclomatic and cognitive complexities. The treatment group adhered more closely to coding standards and produced less complex code. Violations primarily occurred in line length, final parameters, and the extensibility of object-oriented programming (OOP). These findings suggest that ChatGPT can be beneficial in programming education by helping students write cleaner, less complex code and adhere to coding conventions. However, the study's limitations, such as the small sample size and novice status of participants, call for further research with larger, more diverse populations and different educational contexts.
Keyword:
Codes
Chatbots
Programming
Programming profession
Education
Complexity theory
Java
Programming education
ChatGPT large language models
static code analysis
err分享
err收藏
Uncovering Determinants of Code Quality in Education via Static Code Analysis
err2024-01-01
err0
errOAAI
errNikolic, Danilo; Stefanovic, Darko; Nikolic, Miroslav; Dakic, Dusanka; Stefanovic, Miroslav; Koprivica, Sara
err分享
err收藏
Analysis of Learning Behavior in an Automated Programming Assessment Environment: A Code Quality Perspective
err2020-01-01
err20
errOAAI
errChen, Hsi-Min; Nguyen, Bao-An; Yan, Yi-Xiang; Dow, Chyi-Ren
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

S
St. Polten University of Applied Sciences
学者数:
6
论文数: 3
被引数: 54
引用论文

引用论文

Identification of early fruit development reference genes in plum
err2020-04-17
err0
errOAAI
errKelsey Galimba; Roberta Tosetti; Karen Loerich; Leann Michael; Savita Pabhakar; Cynthia Dove; Chris Dardick; Ann Callahan
err分享
err收藏
err分享
err收藏
Bracka’s staged repair of proximal hypospadias - revisiting a versatile technique
err2012-02-01
err0
PREAI
errYew-Wei Tan; Nakul Patel; Alexandra Scarlett; John Clibbon; Milind Kulkarni; Azad Mathur
err分享
err收藏
The long-term protective effects of short-interval postconditioning in testicular ischemia-reperfusion injury in rats
err2012-04-01
err0
PREAI
errSezen Ozkisacik; Ali Onur Erdem; Ozge Durmaz; Nil Culhaci; Harun Gursoy; Mesut Yazici
err分享
err收藏
Assessment of DNA Barcoding for the Identification of Chenopodium murale L. (Chenopodiaceae)
err2012-09-21
err0
errOAAI
errSameera O. Bafeel; Ibrahim A. Arif; Ali A. Al-Homaidan; Haseeb A. Khan; Anis Ahamed; Mohammad A. Bakir
err分享
err收藏
Refining Prehospital Physical Assessment Skills: A New Teaching Technique
err1994-04-01
err0
PREAI
errJoshua S. Vayer; John H. Hagmann; Craig H. Llewellyn
err分享
err收藏
学者 查看更多内容