r/computerscience • u/SubstantialCause00 • May 21 '25
Best cs book you ever read?
Hi all, what's the best computer science book you've ever read that truly helped you in your career or studies? I'd love to hear which book made a real difference for you and why.
134
Upvotes
56
u/sudobear May 21 '25
SICP — it introduced me to lisp, the exercises are fun, and it taught me how to think about computation, especially recursion.
31
u/kusakka May 21 '25
"Code: The Hidden Language of Computer Hardware and Software" by Charles Petzold.
27
u/Dr_Bust-A-Loaf May 21 '25
Crafting Interpreters by Robert Nystrom. I had created a few interpreters in the past, but I wrote them without any real foundation, just sort of figuring things out as I went. After reading this book, I feel like my most recent interpreter has a more coherent, solid foundation.
On top of that, the author writes in a very entertaining manner.
21
u/Interesting-Meet1321 Computer Scientist May 21 '25
Love aho's books, "Compilers: principles, techniques, and tools" is a classic.
15
u/[deleted] May 21 '25
CLRS
/s
12
u/Coderules May 21 '25
I guess it depends on a lot of different variations as to what you define "best". I think that might be a relative term related to where a person is in their CS career. Like most (assumed) when you start out you tend to focus on learning the specifics of a language. Later you might realize the language does not matter s much as solid design skills.
When I first started in CS (first real job), I was writing lots of low level C code on HPUX. Lots of network related coding. I found the books of Richard Stevens, "TCP/IP Illustrated Vol1", "TCP/IP Illustrated Vol2", "UNIX Network programming - Interprocess Communications", and "Advanced Programming in the UNIX Environment" invaluable. I had two sets. One for the office and one for home. This was late 80s and early 90s.
Later in my career I moved to less "here are code examples" to more educational and philosophical books like "Design Patterns - Elements of Reusable Object-Oriented Software by Gamma, Helm, Johnson, and Vlissides (Gang of Four)" and "Algorithms" by Sedgewick, and most of the books by Grady Booch on UML modeling helped me.
Much later, I found deeper, more esoteric leterature like Donald Knuth's books "That Art of Computer Programming" and one of my all time favorites "A Philosophy of Software Design" by John Osterhout.
21
u/fff1891 May 21 '25
Sipser's Intro to Computation.
Working through this book really solidified my understanding of complexity. It's very formal and rigorous, which I like. Not everyone likes that.
7
u/pconrad0 May 21 '25
All of W. Richard Stevens books.
They aren't theoretical computer science, but rather the nuts and bolts of operating systems and networking internals and APIs.
But they are so well-written that they also help to shed light on basic principles.
6
u/dancingelves33 May 23 '25
Operating Systems: Three Easy Pieces and Computer Systems: A Programmer’s Perspective
10
u/laniva May 21 '25
Physically Based Rendering
5
u/CreeperDrop May 21 '25
Skeina and K&R
4
u/MasterGeekMX Bachelors in CS May 21 '25
The Cartoon Guide to Computer Science, by Larry Gonick.
Despite being a cartoon book (and being a bit obsolete as it is from the 80's), it explains a broad range of topics: from the beginnings of computing, binary system, how to make general purpose logic circuits, how a CPU works, etc.
4
u/Tight-Requirement-15 May 21 '25
I am still reading various CS books, like the classics everyone mentions, but I'm starting to feel an issue. Maybe it lies at the heart of pedagogy and teaching methods itself, especially those books geared toward teaching, but I find these types to be very frustrating. Books that are meant to be reference and a big overview are fine, but teaching and learning styles vary vastly from person to person. Someone picking up a book on topic X probably has some understanding of X and that's what inspired them to get that book. Maybe they implemented something about X and thought this will fill in any gaps. But the book tries teaching from the ground up, tries talking about suboptimal methods for the sake of it, it's frustrating.
A lot of people teach dynamic programming as a method with the usual Fibonacci numbers -> the big tree -> recursion/top down -> memoization -> bottom up -> space optimized.
But this makes people think dp is meant for this, while dp is simply a mathematical optimization technique which works in any application with subproblems that can be optimized and built up without changing the internal constituents. You simply need to work through many problems to get better at it, simply reading a text isn't enough
4
u/jhernandez9274 May 22 '25
Computer Organization Architecture, Parallel Programming, Data Structures Algorithms, relational databases, and Artificial Intelligence. Short answer, all of them. Thank you
2
u/[deleted] May 22 '25
._. Introduction to Automata Theory, Languages, and Computation.
2
u/nanonan May 22 '25
Graphics Gems volume IV. Just full of interesting code.
2
u/koxar May 22 '25
OS by tannenbaum
2
u/chickyban May 25 '25
The annotated turing did wonders for my theoretical understanding of CS and math. Literally years of study clicked in an epiphany
2
u/SteeleDynamics May 25 '25
My Favorites:
################
3
u/Deflator_Mouse7 May 22 '25
Godel Escher Bach
And when I was younger, The Little Schemer
1
u/Enough_Durian_3444 May 21 '25
Dive into system: a gentle introduction
1
u/LeaveLeading7172 May 21 '25
I guess it depends on what stage you are in your career. My advice is to focus on the timeless books, the ones that instill the right mental models. In my opinion, some of the best are: The Pragmatic Programmer, A Philosophy of Software Design, and Software Engineering at Google.
If you are interested, I recently found a short video with these kinds of books and a few ideas from each book.
1
u/Qualabel May 21 '25
A Pattern Language
1
u/rambi2222 May 22 '25
The C# Yellow Book by Rob Miles
1
u/Tahn-ru May 23 '25
Operating Systems by Andrew Tanenbaum, helped me love all of the behind the scenes work that build up the layers of our systems to the point where we can work with them.
1
u/Pradeep_MK May 23 '25
Algorithms to live by.
1
u/Major_Piccolo_2908 May 26 '25
Computation Complexity. .. as it is much more technical.
1
u/Longjumping_Land_410 May 22 '25
Programming Massively Parallel Processors -Kirk,Hajj,Hwu