It Will Never Work in Theory: Live!

Our next set of online lightning talks is happening April 25-26, 2023. Check out the speakers and get your ticket now!

The Programmer's Brain

Reviewed by Greg Wilson / 2021-10-02
Keywords: Book Review, Psychology of Programming

Nothing in software engineering makes sense except in light of human psychology.
— paraphrasing Theodosius Dobzhansky

The Programmer's Brain is the most interesting and useful book I've read about programming in several years. In it, Prof. Felienne Hermans gives a readable introduction to key findings in cognitive science, then explains how they relate to things programmers do and build. The table of contents alone should excite most working developers:

  • Part 1: On Reading Code Better
    1. Decoding your confusion while coding
    2. Speed reading for code
    3. How to learn programming syntax quickly
    4. How to read complex code
  • Part 2: On Thinking About Code
    1. Reaching a deeper understanding of code
    2. Getting better at solving programming problems
    3. Misconceptions: bugs in thinking
  • Part 3: On Writing Better Code
    1. How to get better at naming things
    2. Avoiding bad code and cognitive load: two frameworks
    3. Getting better at solving complex problems
  • Part 4: On Collaborating on Code
    1. The act of writing code
    2. Designing and improving larger systems
    3. How to onboard new developers

I could go on (and on), but really, you should just be placing your order right now and figuring out how to use these ideas to improve your work and/or teaching.

Cover of The Programmer's Brain

Hermans2021 Felienne Hermans: The Programmer's Brain: What Every Programmer Needs to Know About Cognition. Manning, 2021, 9781617298677.

Your brain responds in a predictable way when it encounters new or difficult tasks. This unique book teaches you concrete techniques rooted in cognitive science that will improve the way you learn and think about code.