Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

Code: The Hidden Language of Computer Hardware and Software

From Wikipedia, the free encyclopedia
Code: The Hidden Language of Computer Hardware and Software
AuthorCharles Petzold
SubjectComputer architecture, computer science
PublisherMicrosoft Press
Publication date
29 September 1999
Pages393
ISBN978-0735605053
Websitewww.charlespetzold.com/code

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] On June 10, 2022, Petzold announced that an expanded second edition would be published later that year. The second edition was released on July 28, 2022, along with an interactive companion website developed by Petzold.[2][3]

The idea of writing the book came to him in 1987 while writing a column called "PC Tutor" for PC Magazine.[4]

Chapter outline

[edit]
  1. Best Friends
  2. Codes and Combinations
  3. Braille and Binary Codes
  4. Anatomy of a Flashlight
  5. Communicating Around Corners
  6. Logic with Switches
  7. Telegraphs and Relays
  8. Relays and Gates
  9. Our Ten Digits
  10. Alternatives 10s
  11. Bit by Bit by Bit
  12. Bytes and Hexadecimal
  13. From ASCII to Unicode
  14. Adding with Logic Gates
  15. Is This for Real?
  16. But What About Subtraction?
  17. Feedback and Flip-Flops
  18. Let's Build a Clock!
  19. An Assemblage of Memory
  20. Automating Arithmetic
  21. The Arithmetic Logic Unit
  22. Registers and Buses
  23. CPU Control Signals
  24. Loops, Jumps, and Calls
  25. Peripherals
  26. The Operating System
  27. Coding
  28. The World Brain

Content

[edit]

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.[4] 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".[4]

Reception

[edit]

Software engineer and blogger Jeff Atwood described Code as a "love letter to the computer".[5]

Publishers Weekly, shortly after Code's publication, said "Initial response, at least among traditional tech book readers, has been positive" and quotes the book's editor, Ben Ryan, as saying "We're trying to cross the boundary of the computer section, and break out Code as general nonfiction science". It also praises both the quality of the physical book and the style of the writing as easy to read and understand.[6]

Ryan Holihan, writing for Input, calls Code "excellent" and that "it is, by far, the most straightforward way of explaining the earth shattering power humans can wield when working with 1s and 0s", in a brief but positive review.[7]

Code has been included in the syllabi of post-secondary education technical courses, such as "Fundamentals of Modern Software" where it was called "a little dated, but it is a really clear and incredibly accessible presentation of how computers get from electrical currents flowing down wires to programs you can actually use"[8] and other introductory and mid-level computer science and engineering courses.[9][10][11][12]

See also

[edit]

References

[edit]
  1. ^ Petzold, Charles (2000). Code: The Hidden Language of Computer Hardware and Software. Microsoft Press. ISBN 0-7356-1131-9.
  2. ^ Petzold, Charles (10 June 2022). "Announcing "Code" 2nd Edition". charlespetzold.com. Retrieved 10 June 2022.
  3. ^ "Code: The Hidden Language of Computer Hardware and Software, 2nd Edition | Microsoft Press Store". Retrieved 2024-02-20.
  4. ^ a b c Wall, David. "Amazon.com Interview: Charles Petzold". Amazon.com. Retrieved 13 November 2019.
  5. ^ Atwood, Jeff (3 January 2007). "If Loving Computers is Wrong, I Don't Want to Be Right". Coding Horror. Retrieved 13 November 2019.
  6. ^ "Blazing New Trails". Publishers Weekly. Vol. 246, no. 43. 1999-10-25. pp. 30–31. Retrieved 2022-05-26 – via EBSCOhost.
  7. ^ Ryan Houlihan (20 January 2021). "Want to learn to code? Read this book first". Input. Retrieved 26 May 2022.
  8. ^ James grimmelmann (2017). "Fundamentals of Modern Software Syllabus". james.grimmelmann.net. Retrieved 26 May 2022.
  9. ^ Finlayson, Ian. "CPSC 305: Computer Systems and Architecture". ianfinlayson.net. Retrieved 26 May 2022. Computer Systems and Architecture
  10. ^ Kevin Driscoll. "Computational Media" (PDF). dh.virginia.edu. Retrieved 26 May 2022.
  11. ^ Cal Lee (2017). "INLS 465: Understanding Information Technology for Managing Digital Collections". ils.unc.edu. Retrieved 26 May 2022.
  12. ^ Kao (2011). "An Introduction to Computer Science for Everyone Spring, 2011" (PDF). users.cs.northwestern.edu. Retrieved 26 May 2022.
[edit]