---

Reducing Novice Programmer's Mental Burden: Improving Code Comprehension via Cognitive-Load Aware Automated Code Refactoring Welcome to the repository for the research paper, "Reducing Novice Programmer's Mental Burden: Improving Code Comprehension via Cognitive-Load Aware Automated Code Refactoring". This study explores how CodeRefactorER, a generative AI-powered tool built on Cognitive-Driven Development (CDD) principles, simplifies complex code to reduce cognitive load and enhance comprehension for novice programmers. A controlled study with 20 first-semester computer science students demonstrated significant improvements in code understanding, logic flow tracing, function identification, and reduced mental strain. Repository Overview This repository provides all scripts, datasets, and supplementary materials used in the study. Repository Structure CodeRefactorER-instructions.mdThe custom GPT instruction that is deployed in GPT platform. prompts/CDDRefactorER-prompt.mdThe custom prompt used to configure LLM/ChatGPT as a supportive mentor, applying CDD principles to refactor code by simplifying complex structures, enhancing readability, and minimizing cognitive load for novice programmers. prompts/Unguided-prompt-prompt.mdThe unguided-prompt used in this study. survey/pre-test_survey_questions.mdA set of survey questions designed to evaluate novice programmers' baseline understanding, perceived mental strain, and frustration when engaging with complex code prior to using CodeRefactorER. survey/post-test_survey_questions.mdA set of survey questions crafted to assess improvements in code comprehension, cognitive load, and user experience among novice programmers after utilizing CodeRefactorER. survey/task_list.csvA structured dataset listing 20 programming tasks from the Mostly Basic Python Problems (MBPP) dataset used in the study. survey/User_Study-Participant_Instructions.pdfDetailed, step-by-step instructions provided to first-semester computer science students for participating in the code comprehension study using CodeRefactorER. Usage and Reproducibility All materials in this repository are designed to support replication of the study or adaptation for related research. GPT Link Anonymized GPT Link: https://chatgpt.com/g/g-6801a23d42488191bd410191cd8512a1-beginner-code-refactor The GPT link as far as we know is anonymized. But please proceed with causion.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-09-25
DOI
https://doi.org/10.5281/zenodo.17199740
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

---

Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
article

---

article en

Abstract

Reducing Novice Programmer's Mental Burden: Improving Code Comprehension via Cognitive-Load Aware Automated Code Refactoring Welcome to the repository for the research paper, "Reducing Novice Programmer's Mental Burden: Improving Code Comprehension via Cognitive-Load Aware Automated Code Refactoring". This study explores how CodeRefactorER, a generative AI-powered tool built on Cognitive-Driven Development (CDD) principles, simplifies complex code to reduce cognitive load and enhance comprehension for novice programmers. A controlled study with 20 first-semester computer science students demonstrated significant improvements in code understanding, logic flow tracing, function identification, and reduced mental strain. Repository Overview This repository provides all scripts, datasets, and supplementary materials used in the study. Repository Structure CodeRefactorER-instructions.mdThe custom GPT instruction that is deployed in GPT platform. prompts/CDDRefactorER-prompt.mdThe custom prompt used to configure LLM/ChatGPT as a supportive mentor, applying CDD principles to refactor code by simplifying complex structures, enhancing readability, and minimizing cognitive load for novice programmers. prompts/Unguided-prompt-prompt.mdThe unguided-prompt used in this study. survey/pre-test_survey_questions.mdA set of survey questions designed to evaluate novice programmers' baseline understanding, perceived mental strain, and frustration when engaging with complex code prior to using CodeRefactorER. survey/post-test_survey_questions.mdA set of survey questions crafted to assess improvements in code comprehension, cognitive load, and user experience among novice programmers after utilizing CodeRefactorER. survey/task_list.csvA structured dataset listing 20 programming tasks from the Mostly Basic Python Problems (MBPP) dataset used in the study. survey/User_Study-Participant_Instructions.pdfDetailed, step-by-step instructions provided to first-semester computer science students for participating in the code comprehension study using CodeRefactorER. Usage and Reproducibility All materials in this repository are designed to support replication of the study or adaptation for related research. GPT Link Anonymized GPT Link: https://chatgpt.com/g/g-6801a23d42488191bd410191cd8512a1-beginner-code-refactor The GPT link as far as we know is anonymized. But please proceed with causion.

Zenodo (CERN European Organization for Nuclear Research)
Quality Education
Openalex Percentile: Top 35%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.