Live coding sucks | Mustapha Hadid

submited by
Style Pass
2025-08-01 13:00:05

Sounds absurd at first. Why would a senior engineer, who has been writing code for years, struggle with something as simple as a basic algorithm? Did they suddenly forget how to code? Maybe. But I have a different perspective.

Four years ago, I applied for Toptal. I passed the initial stage(s). I passed a 90-minute Codility assessment (three problems as I recall it). Then, I failed to finish a live coding test for a full 30 minutes (more or less, I don’t remember exactly). I revisited the test a few hours later, and I solved the problem in no time.

That was super confusing. The problem wasn’t that hard really. I was able to solve it, but failed to do so in the live coding session.

This triggered my curiosity, and I did some research back then. Turns out it’s a well-known phenomenon in the scientific literature. It’s all about stress.

When you’re placed in a high-stakes, time-pressured situation, like live coding, your brain reacts exactly like it would to any other threat. The amygdala gets activated. Cortisol levels spike. Your prefrontal cortex, the part of the brain responsible for complex reasoning and working memory, gets impaired. Either mildly, moderately, or severely, depending on the individual and their baseline stress resilience.

Leave a Comment
Related Posts