Neuroscientists from MIT have discovered that brain activity while coding differs from processing language or doing mathematics.
Coding is matched by many with learning a new foreign language. And, granted, there are certainly many similarities. To the brain itself, however, it seems to be quite different.
Researchers took fMRI brain scans of young adults in a small coding challenge, using both Python and visual programming language ScratchJr. The purpose was to see what parts of their noggins lit up.
Almost no response was seen in the language processing parts of the brain.
Instead, it appears that coding activates the ‘multiple demand network’ of our brains. This area “is also recruited for complex cognitive tasks such as solving math problems or crossword puzzles.”
Yet when solving maths problems directly, slightly different brain activity patterns emerge.
The multiple demand network is spread throughout the frontal and parietal lobes of the brain. Previous studies have found that math and logic problems dominate the multiple demand regions in the left hemisphere. Tasks involving spatial navigation lean on the right hemisphere more than the left.
Coding activates both the left and right sides of the multiple demand network. This counters the belief that it causes the same brain activity as maths. One interesting fact: ScratchJr activated the right side slightly more than the left.
You can find a full copy of the study here: https://www.biorxiv.org/content/10.1101/2020.04.16.045732v2.full.pdf
You might also find interesting: https://www.vonconsulting.net/ai-automated-coding/