Research Articles, Behavioral/Cognitive
Yun-Fei Liu (劉耘非) and Marina Bedny
Journal of Neuroscience 27 October 2025, e0314252025; https://doi.org/10.1523/JNEUROSCI.0314-25.2025
Abstract
Computer programming is a cornerstone of modern society, yet little is known about how the human brain enables this recently invented cultural skill. According to the neural recycling hypothesis, cultural skills (e.g., reading, math) repurpose preexisting neural “information maps”. Alternatively, such maps could emerge de novo during learning, as they do in artificial neural networks. Representing and manipulating logical algorithms, such as “for” loops and “if” conditionals, is key to programming. …
Research Articles, Behavioral/Cognitive
Yun-Fei Liu (劉耘非) and Marina Bedny
Journal of Neuroscience 27 October 2025, e0314252025; https://doi.org/10.1523/JNEUROSCI.0314-25.2025
Abstract
Computer programming is a cornerstone of modern society, yet little is known about how the human brain enables this recently invented cultural skill. According to the neural recycling hypothesis, cultural skills (e.g., reading, math) repurpose preexisting neural “information maps”. Alternatively, such maps could emerge de novo during learning, as they do in artificial neural networks. Representing and manipulating logical algorithms, such as “for” loops and “if” conditionals, is key to programming. Are representations of these algorithms acquired when people learn to program? Alternatively, do they predate instruction and get “recycled”? College students (n=22, 11 females and 11 males) participated in a functional magnetic resonance imaging (fMRI) study before and after their first programming course (Python) and completed a battery of behavioral tasks. After a one-semester Python course, reading Python functions (relative to working memory control) activated an independently localized left-lateralized fronto-parietal reasoning network. This same network was already engaged by pseudocode - plain English descriptions of Python, even before the course. Critically, multivariate population codes in this fronto-parietal network distinguished “for” loops and “if” conditional algorithms, both before and after. Representational similarity analysis revealed shared information in the fronto-parietal network before and after instruction. Programming recycles preexisting representations of logical algorithms in fronto-parietal cortices, supporting the recycling framework of cultural skill acquisition.
Significance Statement Computer programming is a foundational skill in modern society, yet its neural basis remains poorly understood. The neural recycling hypothesis proposes that new cultural abilities, such as reading and math, emerge by repurposing preexisting neural representations. We tested this hypothesis in programming by tracking brain activity before and after individuals learned to code. Using fMRI, we found that a left-lateralized fronto-parietal reasoning network represents core programming algorithms (“for” loops and “if” conditionals) even before formal instruction. After learning Python, this network continued to encode these algorithms, showing consistent neural representations before and after instruction. These findings support the idea that programming recycles preexisting cognitive structures for logical reasoning, providing a neural basis for how culture builds upon biological foundations.
Footnotes
Author Contributions: Y.L. and M.B. conceptualized and designed the study. Y.L. and M.B. developed the experimental methodology and designed the data collection protocols. Y.L. collected, processed, and analyzed the data. Y.L. and M.B. prepared the first draft of the manuscript. M.B. supervised the research and secured funding for the project.
The authors declare no competing interests.
We appreciate the support from the instructors of Gateway Computing: Python course – Dr. Siamak Ardekani, Dr. Kwame Kutten, Dr. Sara More, and Dr. Joanne Selinski. Their help in distributing participant recruitment notice was essential to this project. The design of our experiment stimuli also greatly benefited from the course material shared by the instructors. We also thank Catherine Chen, Carol Lu, Sangmita Singh, and Ziwen Wang for their contribution to behavioral data collection.
Member Log In
Purchase access
You may purchase access to this article. This will require you to create an account if you don’t already have one.