Eight great programming books that are still must-reads

Why, in the age of AI, would we choose to learn about computer programming from a book?

To be sure, large language models (LLMs) allow for live interaction and Q&A—aids you simply can’t get from a book. But books are still powerful resources, with advantages all their own. For one, books strive to be consistent and reliable. Authors and publishers owe it to their audience to be accurate and correct mistakes. After all, it’s likely the LLM you’ve been using all along has been trained on trustworthy printed material as one of its sources. And studies have shown the act of reading physical books results in better retention and recall than consuming digital media.

These eight books run the gamut for what you can get from a book on programming or computing. Some are straightforwardly instructional; others drill deep into a specific topic. A few are philosophical, designed to provoke more questions than they answer.

Crafting Interpreters

When you’re young and just learning about computing, it’s always a little mind-blowing to learn how programming languages are themselves just … programs, written in another language. How that works has been the subject of various textbooks, like Alfred Aho’s now-legendary Compilers: Principles, Techniques, and Tools (aka the “dragon book”). But few of those texts are aimed at people who want to learn about programming in explain-like-I’m-five English.

Crafting Interpreters, available both online and in print, opens with just such a straightforward pitch: “Ever wanted to make your own programming language or wondered how they are designed and built?” Across 30 chapters, author Robert Nystrom walks the reader through how to construct an interpreter for a hypothetical language (“Lox”) that resembles C. The language used to write the interpreter is Java, but the lessons are portable enough that an ambitious reader could easily translate them into most any other programming language.

By the end of the book, you’ll have had the grand tour not only through the construction of an interpreter—one you can repurpose for making your own programming language—but through the making of a major-scale software project generally. It’s worth the trip.

How to Think Like a Computer Scientist

Few of us get taught to think. Even fewer of us get taught to think like a programmer. Such skills keep you from foundering when confronted with seemingly intractable bugs or baffling architectural decisions. The hard part is acquiring those skills in the first place.

As the title implies, How to Think Like a Computer Scientist, an online book by the Runestone Academy, will help you build habits of thinking about and analyzing programming problems. It does this while also being a soup-to-nuts introduction to the Python programming language, with the larger lessons woven in along the way. For example, when teaching you about debugging, the text resurfaces discussion of Python’s error system. In other words, it doesn’t just talk about ideas in the abstract, but shows you what they amount to in practice.

The best thing about How to Think Like a Computer Scientist is that it’s interactive. The online text includes quizzes and live code samples you can modify and run yourself right on the page. You’ll still want to set up your own instance of Python to write your own programs, but this online book is more than a book—it’s almost a course.

Beej’s Guides

Brian Hall, aka Beej Jorgensen or just Beej, has written several excellent plain-English guides to some of the thorniest territory in modern computing: network concepts and TCP/IP programming, the C language and standard library, Git version control, and many more. All are lively and informative, and great first points-of-contact for their subjects. Best of all, they’re all free to read online, although you can purchase paper copies of a few of them to support the author.

Perhaps the most universally useful of his books is Beej’s Guide to Learning Computer Science, which gives newcomers to computer science a systematic guide to solving problems, finding and fixing bugs, learning new programming languages, and using AI constructively.

The Mythical Man-Month

IBM veteran Frederick Brooks, Jr., wrote The Mythical Man-Month after learning hard lessons aplenty from his time overseeing the IBM System/360 computer and its OS/360 operating system. The hardest lesson was also the most paradoxical: the more people you throw at some software management problems, the slower they get solved. Smaller teams with better conceptual unity for the problem and its possible solutions can work like a surgical team, and get more done with less. On the other hand, this doesn’t mean you can do away entirely with a large staff; it’s a question of how that staff is used to divide and conquer.

Originally published in 1975, Brooks revisited The Mythical Man-Month for a 20th-anniversary edition that included his 1986 paper “No Silver Bullet”. That essay, and the rest of this book, remain cautionary and illuminating decades later. Above all else, they warn against settling for easy answers to the problems of software engineering, including the idea that any one technique or technology will fix everything. (Sound familiar?)

See also: Brooks’s The Design of Design, where he examines what makes for good design in everything—not just software, but also houses, kitchens, or computer centers.

And speaking of design …

The Design of Everyday Things

If you’ve ever walked up to a door and been baffled at how it was supposed to open, you’ve been a victim of bad design. But how many bad designs have you yourself inflicted unwittingly on others, such as a thoughtlessly laid-out GUI or a command-line interface whose options don’t make sense?

Don Norman’s now-classic book, The Design of Everyday Things, argues for keeping the user in mind above all other things, whether you’re designing a door, a coffee pot, the thermostat for a fridge, or a computer interface. The goal should be to make what we use every day as transparent as possible.

As simple as that sounds, it’s shockingly difficult to get right. Norman helps us see why some products please users and others frustrate them, and encourages us to think whenever possible like a user, rather than a designer.

Code: The Hidden Language of Computer Hardware and Software

Charles Petzold’s wonderful book Code: The Hidden Language of Computer Hardware and Software—wonderful in the sense of “full of wonder”—explains computing from the ground up, but from a radically different perspective than other books like it. As the title implies, it begins with the idea of code, a signal that stands for some meaning, and follows with discussions of Morse code, Braille, the telegraph, counting systems, logic gates, digital arithmetic, memory, and so on, all the way up to programming languages and computer imaging.

What’s best about this book is how it entertainingly addresses a problem common even to the technologically literate. The more high-level and abstracted our work with computers gets, the less in touch we are with foundational principles. Code gives everyone from the layman to the command-line guru a comprehensive tour of everything going on inside all of those mysterious little boxes.

See also: The Pattern on the Stone by W. Daniel Hillis. Hillis became famous in computing circles for designing the Connection Machine, the first truly parallel-processing system. This book, subtitled “The simple ideas that make xomputers work,” is a primer on computing along the lines of Code, but more concise, and more focused on the abstractions used in computing such as Boolean logic, the Turing machine, algorithms, and heuristics.

Let Over Lambda

Lisp is at the same time one of the most influential programming languages and one of the most poorly understood. Work with Lisp even a little, many experts say, and it will fundamentally change how you think about programming. A big reason for that is Lisp’s macro system, or code that writes other code. Lisp macros take a very different form than how macros work in, say, Rust or C++.

Let Over Lambda, by Doug Hoyte, is not an introduction to Lisp. Rather, it’s an exploration into why macros in Lisp are so powerful, and how working with them can give you perspectives on programming that you won’t get from working with other languages. The book was previously only available in print, but the author has graciously made the text freely accessible on his website.

Gödel, Escher, Bach: An Eternal Golden Braid

Douglas Hofstader’s 1979 book Gödel, Escher, Bach: An Eternal Golden Braid is so many things at once, no synopsis could do it proper justice. Its subtitle, “A metaphorical fugue on minds and machines in the spirit of Lewis Carroll,” might not help either! But this Pulitzer Prize-winning offering has spellbound generations of readers with its playful and inventive approaches to unpacking some of the biggest questions we ponder. What is a mind? What is thinking? Are computers minds, and can they think?

Gödel, Escher, Bach does not offer fixed answers to these questions. Instead, it uses analogies, stories, and games as ways to think about those questions, and to devise other, even more provocative questions from them. You won’t learn how to program from this book (though the hypothetical languages discussed may sharpen your skills), but it will leave you with plenty to think about. Maybe enough for a lifetime.

By jawad