Code: The Hidden Language of Computer Hardware and Software
Code: The Hidden Language of Computer Hardware and Software (1999) is a book by Charles Petzold that seeks to teach how personal computers work at a hardware and software level. In the preface to the 2000 softcover edition, Petzold wrote that his goal was for readers to understand how computers work at a concrete level that "just might even rival that of electrical engineers and programmers" and that he "went as far back" as he could go in regard to the history of technological development. Petzold describes Code as being structured as moving "up each level in the hierarchy" in which computers are constructed.[1]
![]() | |
Author | Charles Petzold |
---|---|
Subject | Computer architecture, computer science |
Publisher | Microsoft Press |
Publication date | 29 September 1999 |
Pages | 393 |
ISBN | 978-0735605053 |
Website | www |
The idea of writing the book came to him in 1987 while writing a column called "PC Tutor" for PC Magazine.[2]
Chapter Outline
- Best Friends
- Codes and Combinations
- Braille and Binary Codes
- Anatomy of a Flashlight
- Seeing Around Corners
- Telegraphs and RElays
- Our Ten Digits
- Alternatives to Ten
- Bit by Bit by Bit
- Logic and Switches
- Gates (Not Bill)
- A Binary Adding Machine
- But What About Subtraction?
- Feedback and Flip-Flops
- Bytes and Hex
- An Assemblage of Memory
- Automation
- From Abaci to Chips
- Two Classic Microprocesosrs
- ASCII and a Cast of Characters
- Get on the Bus
- The Operating System
- Fixed Point, Floating Point
- Languages High and Low
- The Graphical Revolution
Content
Petzold begins Code by discussing older technologies like Morse code, Braille, and Boolean logic, which he uses to explain vacuum tubes, transistors, and integrated circuits. Code is notable for its explanations of historical technologies in order to build the pieces for further understanding. Electricity is explained through the example of a basic flashlight, which is then expanded upon through the explanation of the electrical telegraph. He noted that "very smart people" had to go down the "dead ends" of mechanical computers and decimal computing before reaching a scalable solution—namely, the electronic, binary computer with a von Neumann architecture. The book also covers more recent developments, including topics like floating point math, operating systems, and ASCII.
The book focuses on "pre-networked computers" and does not cover concepts like distributed computing because Petzold thought that it would not be as useful for "most people using the Internet", his intended audience.[2] Specifically, he said in an interview that his "main hope" in writing Code was to impart upon his readers a "really good feeling for what a bit is, and how bits are combined to convey information".[2]
Reception
Software engineer and blogger Jeff Atwood described Code as a "love letter to the computer".[3]
As of 2022, Code holds a 4.6 out of 5 rating on Amazon with over 1500 reviews.[4]
References
- Petzold, Charles (16 August 2000). Code: The Hidden Language of Computer Hardware and Software. Choice Reviews Online. Vol. 38. Microsoft Press. pp. 38–0334. doi:10.5860/choice.38-0334. ISBN 0-7356-1131-9. S2CID 60929579.
- Wall, David. "Amazon.com Interview: Charles Petzold". Amazon.com. Retrieved 13 November 2019.
- Atwood, Jeff (3 January 2007). "If Loving Computers is Wrong, I Don't Want to Be Right". Coding Horror. Retrieved 13 November 2019.
- "Code: The Hidden Language of Computer Hardware and Software".