The DOI matches its Crossref record; 28 of the 28 references it cites were found in a registry or an index.
Does ChatGPT Help Novice Programmers Write Better Code? Results From Static Code Analysis
Open accessAbstract
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.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Citations
Cites
McCabe, T. J. (1976) · IEEE Transactions on Software Engineering · doi:10.1109/tse.1976.233837 · Cited by 6,059
ChatGPT for Education and Research: Opportunities, Threats, and Strategies
Rahman, M. M., & Watanobe, Y. (2023) · Applied Sciences · doi:10.3390/app13095783 · Cited by 1,080
Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming
Kazemitabaar, M., Chow, J., Ma, C. K. T., Ericson, B. J., Weintrop, D., & Grossman, T. (2023) · Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3544548.3580919 · Cited by 366 · cited 1×
“In a recent study, Kazemitabaar et al. [24] examined the suitability of OpenAI Codex on supporting introductory programming for novice programmers.”
BackgroundAn empirical evaluation of GitHub copilot's code suggestions
Nguyen, N., & Nadi, S. (2022) · Proceedings of the 19th International Conference on Mining Software Repositories · doi:10.1145/3524842.3528470 · Cited by 313 · cited 2×
“Nguyen and Nadi [16] assessed GitHub Copilot’s code recommen-dations’ accuracy and comprehensibility across different programming languages using LeetCode questions.”
BackgroundExploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study
Guo, Q., Cao, J., Xie, X., Liu, S., Li, X., Chen, B., & Peng, X. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3623306 · Cited by 235
Ozkaya, I. (2023) · IEEE Software · doi:10.1109/ms.2023.3248401 · Cited by 206 · cited 1×
“It is essential that students possess the ability to evaluate the quality of AI-generated code while also The associate editor coordinating the review of this manuscript and approving it for publication was Alba Amato . enhancing their programming fluency and critical thinking skills [2].”
BackgroundAssessing the quality of GitHub copilot’s code generation
Yetiştiren, B., Ozsoy, I., & Tüzün, E. (2022) · International Conference on Predictive Models in Software Engineering · doi:10.1145/3558489.3559072 · Cited by 193 · cited 1×
“Yetistiren et al. [17] used the HumanEval dataset with 164 coding problems to evaluate GitHub Copilot’s code generation based on validity, correctness, and efficiency.”
MethodCognitive complexity: an overview and evaluation
Campbell, G. A. (2018) · IEEE/ACM International Conference on Technical Debt (TechDebt) · doi:10.1145/3194164.3194186 · Cited by 182
How ChatGPT Will Change Software Engineering Education
Daun, M., & Brings, J. (2023) · ACM Conference on Innovation and Technology in Computer Science Education (ITiCSE) · doi:10.1145/3587102.3588815 · Cited by 177 · cited 2×
“This supports the findings of Jacques [25] and Daun and Brings [26], who found that LLM-based tools can enhance students’ understanding of coding concepts and design principles.”
BackgroundResultStudents’ Experiences of Using ChatGPT in an Undergraduate Programming Course
Haindl, P., & Weinberger, G. (2024) · IEEE Access · doi:10.1109/access.2024.3380909 · Cited by 157 · cited 1×
“It complements our previous qualitative study regarding the suitability of ChatGPT for programming exercises and typical application scenarios from students’ perspective [8].”
ResultSelf-citation
Research works printed but not linked: 9
- 2024, OpenAI
- Izu, Exploring CS1 students notions of code quality, 12
- 2024, Checkstyle—Checkstyle 10.14.1
- 2024, PMD
- 2024, Code Conventions for the Java Programming Language: Contents
- 2024, Checkstyle—Checks
- 2024, Checkstyle—Suns Java Style
- 2024, Checkstyle/src/main/resources/sun.xml At Master
- 2024, Code Quality Tool & Secure Analysis With SonarQube
Cited by
Yang, T.-C., Hsu, Y.-C., & Wu, J.-Y. (2025) · Interactive Learning Environments · doi:10.1080/10494820.2025.2450659 · Cited by 80
“When recent research (Haindl & Weinberger, 2024) highlighted the necessity of considering the learning experience when attempting to explain the impact of ChatGPT on learning programming, the results of our research offers some insight.”
Misiejuk, K., López-Pernas, S., Kaliisa, R., & Saqr, M. (2025) · Journal of Learning Analytics · doi:10.18608/jla.2025.8591 · Cited by 30
PyChatAI: Enhancing Python Programming Skills—An Empirical Study of a Smart Learning System
Alanazi, M., Soh, B., Samra, H., & Li, A. (2025) · Computers · doi:10.3390/computers14050158 · Cited by 15
Qiao, Y., Shihab, M. I. H., & Hundhausen, C. D. (2025) · ACM Transactions on Computing Education · doi:10.1145/3785366 · Cited by 31
“The first two authors first familiarized themselves with the data by reading the papers.”
Stoyanova, D., Stoyanova-Petrova, S. V., Shotarova, S., Lyubomirov, S. Y., & Mileva, N. S. (2025) · Education Sciences · doi:10.3390/educsci16010019 · Cited by 13
Metadata
- Authors
- Haindl, P., & Weinberger, G.
- Affiliations
- University of Applied Sciences St Pölten (AT)
- Venue
- IEEE Access
- Published
- 2024
- Volume
- 12
- Pages
- 114146-114156
- ISSN
- 2169-3536 (ISSN-L)
- OpenAlex
- W4401687261
- Cited by
- 45
- References
- 26
- Citations by year
- 2026: 25 · 2025: 20
- FWCI
- 9.82
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Locations
- IEEE Access (publishedVersion, cc-by)
- Preprints.org (submittedVersion, cc-by)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Topics
- Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Social Sciences › Education › Artificial Intelligence in Education
- Keywords
- ChatGPT, novice programmers, code quality, static code analysis, coding conventions, cyclomatic complexity, cognitive complexity, Java programming, introductory programming courses, part-time undergraduate students
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Does ChatGPT Help Novice Programmers Write Better Code? Results From Static Code Analysis. https://app.cochat.ai/papers/10.1109/access.2024.3445432
- The paper
- Haindl, P., & Weinberger, G. (2024). Does ChatGPT Help Novice Programmers Write Better Code? Results From Static Code Analysis. IEEE Access. https://doi.org/10.1109/access.2024.3445432
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.