

Buy anything from 5,000+ international stores. One checkout price. No surprise fees. Join 2M+ shoppers on Desertcart.
Desertcart purchases this item on your behalf and handles shipping, customs, and support to Brazil.
The classic guide to how computers work, updated with new chapters and interactive graphics "For me, Code was a revelation. It was the first book about programming that spoke to me. It started with a story, and it built up, layer by layer, analogy by analogy, until I understood not just the Code, but the System. Code is a book that is as much about Systems Thinking and abstractions as it is about code and programming. Code teaches us how many unseen layers there are between the computer systems that we as users look at every day and the magical silicon rocks that we infused with lightning and taught to think." - Scott Hanselman, Partner Program Director, Microsoft, and host of Hanselminutes Computers are everywhere, most obviously in our laptops and smartphones, but also our cars, televisions, microwave ovens, alarm clocks, robot vacuum cleaners, and other smart appliances. Have you ever wondered what goes on inside these devices to make our lives easier but occasionally more infuriating? For more than 20 years, readers have delighted in Charles Petzold's illuminating story of the secret inner life of computers, and now he has revised it for this new age of computing. Cleverly illustrated and easy to understand, this is the book that cracks the mystery. You'll discover what flashlights, black cats, seesaws, and the ride of Paul Revere can teach you about computing, and how human ingenuity and our compulsion to communicate have shaped every electronic device we use. This new expanded edition explores more deeply the bit-by-bit and gate-by-gate construction of the heart of every smart device, the central processing unit that combines the simplest of basic operations to perform the most complex of feats. Petzold's companion website, CodeHiddenLanguage.com, uses animated graphics of key circuits in the book to make computers even easier to comprehend. In addition to substantially revised and updated content, new chapters include: Chapter 18: Let's Build a Clock! Chapter 21: The Arithmetic Logic Unit Chapter 22: Registers and Busses Chapter 23: CPU Control Signals Chapter 24: Jumps, Loops, and Calls Chapter 28: The World Brain From the simple ticking of clocks to the worldwide hum of the internet, Code reveals the essence of the digital revolution. Review: Makes your concept clear - This should be first book for computer science student and engineers. Review: It fills the knowledge gap... - It's a lovely book. It fills the knowledge gap about how a computer actually works and understands our logic. It gives us the explanation for why we code the way we do!


| Best Sellers Rank | #14,558 in Books ( See Top 100 in Books ) #3 in C & C++ Programming #6 in Introductory & Beginning Programming #7 in Software Architecture |
| Customer Reviews | 4.7 out of 5 stars 979 Reviews |
A**A
Makes your concept clear
This should be first book for computer science student and engineers.
P**M
It fills the knowledge gap...
It's a lovely book. It fills the knowledge gap about how a computer actually works and understands our logic. It gives us the explanation for why we code the way we do!
J**M
I'm on page 216
Which is just shy of half way through. Phenomenal, incredible book. Petzold, what a guy. What a service to self taught devs like me. I think an early foundational book in any self taught devs library - one that's looking to give themselves a computer science education, anyway.
B**Y
An excellent read to build a solid foundation for coding
Being a tech enthusiast, I enjoy reading books that focus on building a solid foundation for coding and ML. This book starts with the very basics of the functioning of a PC and along the way builds a strong foundation for coding and ML. Reading this book was a journey that began with Braille code and Morse code and went to Logic Gates, Coding, and beyond. Here's a book named Code and yet Coding only begins way later in the book. And that is because the author has emphasized heavily building a solid foundation for coding first. And I find that to be so amazing! Reading the fantastic examples and explanations given by the author was super fun and interesting! He used everyday objects to explain the concepts. I thoroughly enjoyed reading this amazing book and would highly recommend it to those who want to understand the fundamental basics of the functioning of a computer system.
P**L
Very Good.
A very easy to understand book that teaches you very comfortably about computer language.
M**Y
Required Reading for Self-Taught Devs
From my perspective (and there are other ways of looking at this book), Code is an amazing book that teaches you the internals of how computers work for non-computer-science grads who are self-taught programmers unaware of the details of digital computer architecture. It starts by using vernacular language and simple abstractions, gradually proceeding to fully unravel the mystery of the digital design underlying the computer architecture and the internet. Just one Chapter, chapter 13, from ASCII to Unicode, in my humble opinion, pays for the entire book, since this clarifies a lot of confusion that programmers have regarding character sets, encoding and the role unicode plays. Even the best stack overflow answer pales in comparison to Petzold's explanation of, for example Unicode vs UTF-8. But that's not all. Petzold takes you further, and helps you understand several topics underlying computers, such as memory, CPU, file systems and how sound and images are encoded. Building on all this knowledge, he takes you on a fascinating journey of fun projects such as building a clock, understanding how memory & CPU works, and the peek into the secret life that programs live after you compile them. All this using just layman's language that any logical person can understand.
V**A
Fraud
Not working.not able to contact seller
K**V
Cheap quality paper and printing for the money paid
The paper and printing quality are extremely poor for such an expensive and important book. Don't be fooled by the 'Published by Microsoft' information on the product page. It is printed and sold by Repro Books India. The book also came in a damaged condition.
A**N
Great intro to computation
Im currently building my foundations in computers on a lower level one book at a time. I came into software engineering from a sales background. Over time, I’ve realised that while practical experience teaches you a lot, it can leave gaps in the deeper why behind how computers actually work and why software behaves the way it does. So I’ve been creating my own structured learning path to fill those gaps, starting from the ground up. The first book I chose is this one right here! It’s not a typical programming book. It starts with how humans first used codes to communicate through Morse code, telegraphs, and switches and slowly builds toward how those same ideas evolved into modern computers. What surprised me most is how much of computing is built on very simple logic. At its core, everything reduces to circuits making yes/no decisions and when you chain enough of those together, you get adders, memory, and eventually an entire processor. Reading it connected a lot of dots for me like how information becomes binary, how logic gates combine to perform arithmetic. It made computing feel less like magic and more like a long, logical sequence that starts with electricity and ends with the systems we work with every day. If you’re self taught, or you feel like you’ve jumped straight into frameworks and languages without really understanding what’s underneath, I’d highly recommend this book. It helped me see computers as one continuous chain of reasoning from Morse code to microprocessors.
M**D
Great product
Interessting, great book
D**N
A Must-Read for everyone
One of the best, if not the best, books on computing… nice touch with the colored diagrams
D**D
Code
Good concise write up on how hardware and software interact inside an Intel 8080 cpu.
P**E
Great book to learn how computers work
Great book for a curious child or adult who wants to know how computers work. Less hands-on than Nisan and Schocken's book. Ideally, get both!
Trustpilot
1 month ago
1 week ago