Chapter 1: The Lobster Principle
–- The interview was going perfectly until it wasn't. Maya had aced the algorithm questions, explained her past projects with clarity, and even made the senior engineer laugh twice. Then came the live coding section. The problem was straightforward: "Write a function that takes an array of numbers and returns a new array with each number doubled." Maya opened the editor, her fingers found the home row, and she typed:const doubled = array.map(n => n * 2);But she didn't type that. She typed:const doubled = array.map(n => n * 2)She forgot the semicolon.The code ran anyway.
Java Script's automatic semicolon insertion (ASI) saved her. But then the interviewer asked, "Can you explain why that semicolon is optional here but required in other contexts?" Maya's mind went blank. She had used semicolons for years, but she had never thought about why. She stammered something about line breaks and return statements, but she could see the interviewer's expression shift from interest to concern. She didn't get the job.
The feedback email arrived three days later: "Strong technical skills, but attention to detail on language specifics needs improvement."Maya's story is not about failure. It's about a mismatch between how we learn syntax and how our brains actually work. Maya had written thousands of semicolons. She had read articles about ASI. She had even fixed semicolon bugs in production.
By every measure, she had practiced. And yet, under the mild pressure of an interview question, her knowledge evaporated like morning dew. The problem wasn't practice. The problem was encoding.The Ten Thousand Hour Misunderstanding We have been told a comforting lie: that mastery comes from repetition. Ten thousand hours of practice.
Drill until you can't get it wrong. Type the code until your fingers remember what your brain forgets. This advice works—just well enough to be dangerous. It works for basic motor skills. It works for simple facts.
It works long enough to get you through a tutorial or a homework assignment. But it fails catastrophically when you need recall under pressure, when you switch between languages, or when the syntax…
This is the end of the free sample. Get the Paperback to keep going. Buy now →























