Primary language mastery

Pick one language and go deep: collections API, iterators, string handling, memory model. Interview fluency is typing speed for thoughts.

About 27 min read3-question knowledge check

The mental model

Your primary language is a **musical instrument**, not a topic. Nobody is impressed that a pianist knows what a piano is; they are impressed that the pianist does not have to look at their hands. In a 45-minute interview you have roughly 12 minutes of actual typing time. Every second you spend recalling whether it is sort() or sorted(), whether map returns a list or an iterator, or how to make a min-heap out of a max-heap library, is a second stolen from thinking about the problem.

The analogy that sticks: fluency is typing speed for thoughts. A fluent speaker of a language does not translate word by word from their native tongue. A fluent programmer does not translate from pseudocode. When you decide "I need a frequency map keyed on the sorted characters of each string", the code should arrive as one unit, not as five decisions.

Why does this exist as a distinct skill rather than falling out of practice? Because interviews compress it. In real work you have autocomplete, documentation, a compiler that runs in a loop, and a colleague. In an interview you have a text box that does not run and a person watching. The failure mode is specific and common: candidates who genuinely know the algorithm produce code that does not compile, because their language knowledge is recognition-level (they can read it) rather than production-level (they can write it from an empty file).

The second reason: language semantics are where correctness bugs hide. Integer overflow in Java and C++ is silent. Mutating a collection while iterating it throws in Java and silently skips elements in Python. Slicing copies in Python and does not in Go. These are not trivia — they are the difference between a solution that passes and one that fails on the interviewer's test case.

Pick one language. Go deep. Add a second only after the first is automatic.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision