Y Hacker News Books
Buy on Amazon4.6 out of 5, 2,787 ratings on Amazon

#12 of 2,629 all-time

Code

Charles Petzold

147 people recommended it in 57 threads, 2011–2026.

2 of those were in the last year.

4 commenters pushed back on it — worth reading the threads.

What people on Hacker News said

michaeldhopkins
After reading Code my hacking skills increased considerably. I am never comfortable relying on abstractions so understanding more of the programming stacks I use increased my willingness to experiment with then. It also helped me to better understand pointers and memory management as memory became a real thing to me.

on HN, 2011

kalleboo
Seeing every step from the ground-up really helps demystify the machines you see around yourself every day.

on HN, 2011

mindcrime
If you didn't take, or have forgotten, classes like Computer Architecture or Digital Logic, this is a great book for getting your head around the low level details of what's happening in side a digital computer. Petzold starts from VERY basic examples (using a flaslight to morse code messages to your friend across the street) and slowly builds up to a full-fledged (if somewhat minimalistic) CPU.

on HN, 2017

angersock
So, by the end of the night, with proper questioning we'd gotten him to come up with MMIO, with virtual memory, with paging, and eventually gotten him to consider how to implement concurrency via scheduling and his newly discovered virtual memory mechanism.

on HN, 2011

mbrd
It starts at simple circuits and builds up a picture of how computers work. It has really helped me get my mental models of what's going on inside a computer straightened out!

on HN, 2016

And on Amazon

Half "light read", half "I have to do that section again" - Great overview of how computers really work

As many other reviews said, the first part of the book is a brilliant, entertaining, easily understandable & accessible overview of underlying topics that relate to how "codes", electronic signals, alternate number systems & computers came about. The latter sections are considerably more dense, and required going back a few times, tracing the circuit diagrams with my finger, and Googling the finer points of electrical circuitry, how to do math in binary, octal, and hexadecimal, and other assorted topics covered in this wide-ranging work. …

MC01 · verified purchase · 5/5

a wonderful introduction to computers

This book has a special place in my heart. I started my career working for one of the big box software service companies and the work I was exposed to was of a pretty boring nature i.e. repetitive work with no room for any thought; the focus was on doing things mechanically without understanding what the thing is all about. Moreover, my educational background was mechanical/industrial engg and hence I entered the field without knowing much about the field of computing. So that was my introduction to the field of computing and the combination of these factors was disastrous; soon I lost my interest in the field and I was terribly depressed. …

Rajeev P · verified purchase · 5/5

Changes pretty dramatically after a few chapters.

Let me revise my previous review with a few brief things to say about this. First, this book has a lot of pictures and diagrams and you'll want to frequently go back to them and take your time. For this reason, it's probably a pretty bad idea to buy the kindle version. Second, this books starts out as super-light reading (for me anyway) and then starts getting much harder and denser. For that reason I can't give it 5-stars. The preview you get for your kindle might be misleading for that reason. The pacing, in my opinion, was too slow in the beginning and too fast in the middle. You'll want to take your time with this book. …

Ryan McNamara · verified purchase · 4/5

Where it comes up