skip to content
BooksReddit

Book · 1999

Code: The Hidden Language of Computer Hardware and Software

by Charles Petzold

A retired software engineer builds a computer from telegraph relays and flashlights, one chapter at a time, until you understand what a CPU actually does.

181
Total mentions
109
Unique Reddit accounts
case-insensitively deduplicated across the selected corpus
+0.32
Avg sentiment
scored published excerpts: −1 pan ↔ +1 praise
10
Subreddits
where it's mentioned

What does Reddit think of Code: The Hidden Language of Computer Hardware and Software?

That concentration makes sense: the book exists for people who write code but have never understood what happens below the interpreter. The sub's recurring pitch is specific — this is what you read before you can explain why computers use binary, or after two years of programming when you realize the hardware layer is a black box. The ↑270 comment calls it the best book for non-programmers learning computing from scratch. The ↑380 commenter admits parts went over their head — the electricity and history chapters draw the most complaints — but finished it and recommended it anyway. r/ExperiencedDevs shows 7 mentions, mostly in lists alongside Nand2Tetris, treating it as foundational substrate rather than practical reference. Sentiment across all subs is broadly positive.

Community feedback & reader fit

Themes

  • · Bottom-up computer architecture from first principles
  • · Hardware fundamentals for software developers
  • · History of computing from telegraph to microprocessor
  • · Binary arithmetic and Boolean logic
  • · How CPUs execute instructions

Common praise

  • + The progression from telegraph relays to logic gates to CPU makes previously arbitrary abstractions feel inevitable.
  • + The ↑270 commenter calls it the best non-programmer introduction to computing that exists.
  • + Readers who finish it report that low-level concepts in other CS books stop feeling like magic.

Common criticism

  • − The electricity and circuits chapters run long before anything resembling computing appears — a reported friction point in multiple threads.
  • − The ↑380 commenter admits parts went over their head, and that honest caveat is the most-upvoted full endorsement the book gets.

Who it's for

If you write code every day and couldn't explain what happens between source file and CPU, this is the book r/learnprogramming points you toward. Self-taught developers who skipped formal CS get the most out of it. CS graduates with architecture coursework will find the first half redundant. Push past the circuits section or don't start — the payoff on the other side is real, but it requires finishing.

Mentions over time

Q1 2019 peak: 16/qtr Q1 2026

Top subreddits

Which Reddit comments matter for Code: The Hidden Language of Computer Hardware and Software?

Top-upvoted quotes across the subreddits where this book is mentioned. Click through to read the full thread.

What I would call the classics: * Design Patterns - Elements of Reusable Object-Oriented Software * Code Complete * Rapid Development * The Pragmatic Programmer * The Mythical Man-Month * Operating Systems Design and Implementation * Refactoring - Improving the Design of Existing Code * The Algorit…

r/learnprogramming ↑ 674 Not scored

Here's the list, for anyone interested in just that: 1. The Pragmatic Programmer by David Thomas & Andrew Hunt (67% recommended) 2. Clean Code by Robert C. Martin (66% recommended) 3. Code Complete by Steve McConnell (42% recommended) 4. Refactoring by Martin Fowler (35% recommended) 5. Hea…

r/programming ↑ 655 Not scored

I 100% recommend Code: The Hidden Language of Computer Hardware and Software. Parts of it did go over my head, because it talks a lot about the history of computers and a lot of technical mumbo jumbo regarding electricity. I enjoyed it though, I read…

r/learnprogramming ↑ 380 positive

Programming is about formally expressing processes. If this happens, do that. Do this N times. When this happens, do X and also stop doing Y. Or maybe stop Y before doing X. Thinking like a programmer isn't about code so much as thinking formally about processes. "Formally"? Consider that mat…

r/learnprogramming ↑ 312 mixed

Code: The Hidden Language of Computer Hardware and Software I'm surprised no one has mentioned this yet. This is the best book fo…

r/learnprogramming ↑ 270 positive

Here's my list of the classics: **General Computing** * But How Do It Know? - The Basic Principles of Computers for Everyone * The Elements of Computing Systems: Building a Modern Computer from First Principles * […

r/learnprogramming ↑ 257 Not scored

Thank you for your the effort, looks like a great list of resources but I really dislike that website, so here's a list of every chapter and its links/description in case someone else hates it too **YOU SHOULD GIVE THE WEBSITE A TRY THOUGH, SINCE IT HAS SOME HANDY FUNCTIONALITY AND OP HAS SPE…

r/learnprogramming ↑ 182 mixed

Your assessment of the fundamentals is correct. + Code flow + Variables + Loops + Branches (conditionals) + Input/Output + Data Structures (not complete fundamentals) You obviously fall short on the *problem solving* aspect of programming. What you have to learn is to abstract *code* from *algo…

r/learnprogramming ↑ 156 mixed

Readers also mention

Books that share discussion threads with Code: The Hidden Language of Computer Hardware and Software — counted from the comments, not curated.

Code: The Hidden Language of Computer Hardware and Software — frequently asked

Is Code: The Hidden Language still worth reading in 2026?+

Yes, for anyone who hasn't internalized how hardware works. The fundamentals don't expire. r/learnprogramming has cited it 141 times, and it appeared there as recently as March 2026. The second edition updated examples without changing the structure, so the ↑270 recommendation for non-CS beginners still holds.

What does Reddit think of Code: The Hidden Language compared to Nand2Tetris?+

Reddit treats them as different tools rather than competitors. Code is narrative and historical; Nand2Tetris is hands-on and project-based. r/learnprogramming lists them alongside each other in the ↑257 classics thread, and r/ExperiencedDevs groups them in the same breath when discussing foundational computing texts. Neither substitutes for the other.

Does Code: The Hidden Language work for people with no electrical engineering background?+

Mostly. The ↑380 r/learnprogramming commenter says parts went over their head — specifically the electricity and hardware sections — but finished it and found it worthwhile. The circuits chapters are the reported friction point. Readers who push through report the payoff on the architecture side is real.

Should experienced developers bother with Code: The Hidden Language?+

Depends on what you missed. It gets sent to juniors and career-changers. If you have a CS degree, you've probably covered this ground. If you don't, and you've been wondering about the bottom of the stack, it's the right book.