The thinking skills AI can't do for you

Think Like
a Coder

A back-to-basics guide to the mental skills behind coding — pattern recognition, logical reasoning, and problem decomposition — without writing a single line of code.

By Jim Christian · Batsford / Pavilion Books · Ages 9 to 90

How to Think Like a Coder: Without Even Trying! book cover
The book's robot characters waving hello

Why This Matters Now

AI can write code. It can't think for you.

In an era where ChatGPT can generate a Python script in seconds, the mental muscles behind programming matter more than ever. Pattern recognition. Logical reasoning. Breaking complex problems into manageable pieces. Evaluating whether an answer actually makes sense.

These are the skills that atrophy when we let AI do our thinking — and the same skills we need to evaluate AI output critically. How to Think Like a Coder teaches these foundations through puzzles, card games, magic tricks, and dice — no computer required.

Illustration of a person with a computer for a head

What the Book Covers

Computational thinking skills taught through play — not lectures.

Hedgehog illustration

Pattern Recognition

Spot the signals in the noise. Learn to identify repeating structures, classify information, and see what others miss.

Robot in the rain illustration

Logical Reasoning

If this, then that. Master conditional thinking, boolean logic, and the art of building airtight arguments — with playing cards and finger binary.

Robot making a sandwich illustration

Problem Decomposition

Big problems are just small problems in a trenchcoat. Learn to break anything down into steps a computer (or a human) can follow.

Earth orbiting the sun illustration

Algorithms & Loops

From making a sandwich to sorting a deck of cards — discover that you already think in algorithms, and learn to do it deliberately.

Suitcase illustration for variables

Data Types & Variables

Containers with names and values. Understand how computers (and your brain) organise information — through games you can play at home.

Grace Hopper finding the first computer bug

Debugging

Find the bug. The original computer bug was a moth. Learn to spot errors in logic, test your assumptions, and fix what's broken.

How It Teaches

No screen time required. Just curiosity and a deck of cards.

Robots playing a hangman-style game

Games & Puzzles

Card tricks that teach conditional logic. Dice games that demonstrate random number generation. Finger binary that lets you count to 31 on one hand.

Pen and notepad illustration

Scaffolded Learning

Every concept builds on the last. Start with what you already know, add one new idea at a time. No cognitive cliffs.

River crossing puzzle illustration

Real-World Puzzles

The river crossing problem. The Caesar cipher. Classic puzzles that have taught logical thinking for centuries — reframed for the digital age.

Standing on the Shoulders of Giants

The book introduces the real people behind computing — from the first programmer to the first debugger.

Illustration of Ada Lovelace, the first computer programmer
Ada Lovelace wrote the first computer program in 1843 — over a century before computers existed.
Illustration of Grace Hopper finding the first computer bug
Grace Hopper found the first actual computer bug — a moth stuck in a relay. The term "debugging" was born.

What People Say

Shortlisted ALCS Educational Writers' Award 2018
Book of the Month Book Aid International · September 2019

"Accessible and fun.. an essential addition to any keen programmer's bookshelf."

Lancashire Evening Post

"If ever an author were thinking outside of the box, this would be it — quite literally."

Armadillo Magazine

"Programming needs a grasp of the basics — coding — so here's the ideal start. An excellent book."

Parents In Touch

"This colourful book provides a wonderful, rather substantial taster to a subject on the rise."

Book Aid International

"Packed full of information and lively illustrations featuring fun robot characters who enliven the text."

The Book Activist

"A complex topic made easier to understand with striking illustrations."

Creative Steps Magazine
Lancashire Evening Post pull quote
Five-star Amazon reader review
Reader review on Amazon US
Featured in Armadillo magazine
Featured in Armadillo magazine
Jim Christian, author

About the Author

Jim Christian has over 30 years of experience in technology, from software development to cybersecurity. He wrote How to Think Like a Coder because he kept meeting people who wanted to understand coding but were intimidated by the syntax — when the real magic was in the thinking.

Jim is also the author of How to Code in Minecraft (Dennis Publishing, 2016) and writes about AI implementation at Signal Over Noise.

Get the Book

Available in paperback and hardcover.