Research indexPreprint
Cognitive Differences in Computer Programmers
McGill, Thompson
1 Jan 2026Open access
NobleIDark:/48914/w1/20261105/B6353310DOI10.17605/osf.io/9kjm6
Cognitive Differences in Computer Programmers
McGill, Thompson · 2026
NobleIDark:/48914/w1/20261105/B6353310DOI10.17605/osf.io/9kjm6
Free to read at the publisher
You can read the abstract here, or the full text at the publisher.
Abstract
As society leans on STEM education to prepare students for future careers, it’s important to understand the underlying cognitive mechanisms and individual differences that facilitate learning, especially for highly mathematics-based careers, like computer science. In 1981, McKeithen and colleagues showed differences in how expert, relative to novice, programmers more reliably remembered (by chunking information in long-term memory) and more skillfully organized coding-related information (by developing schemas). The study provided an initial understanding of how novice programmers develop into experts, yet didn’t consider constructs that modern mathematics and computing education researchers consider important to the process of learning mathematical reasoning skills that are required when learning code. The current study aims to replicate and extend the classic computing cognition study by McKeithen and colleagues. We’ll demonstrate whether the cognitive differences between novices and experts remain the same as 45 years ago, while also attempting to more thoroughly explain individual differences in programming skill by measuring other critical cognitive constructs. Participants, who are programmers of varying experience levels, will be recruited from Prolific. Participants will complete a task similar to McKeithen et. al. where they'll see an updated C++ (rather than ALGOL W) code snippet that is in a logical order (control group), or the same piece of code which is out of order (experimental group). Participants will study the code for 2 minutes before taking 3 minutes to recall the code snippet. Participants will complete a working memory task and measures for math anxiety, programming anxiety, fixed/growth mindset, relational reasoning, and self-efficacy. Finally, participants will provide demographic information including gender, race, and educational attainment. We’ll use a structural equation model to analyze differences between the control and experimental groups. Then, we’ll construct subsequent models that include the abovementioned variables. We’ll select the most parsimonious model that fits the data best. The current study will replicate and extend McKeithen et. al. (1981) to update what we know about the cognitive mechanisms involved in expert’s and novice’s attempts at memorizing and processing a computer program. Ultimately, we expect similar results to the original study: expert programmers will perform better on the memorization task when the code is in a logical order, and there will be no differences between novices and experts when the code isn’t in a logical order. We anticipate explaining additional variance in code memorization by adding the cognitive constructs, thus providing a more complete picture of differences between novice and expert programmers.