Hacker ApprovedDepartments

The best computer science textbooks, according to hackers

28 computer science textbooks were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 3 earn the Hacker Approved badge.

Top picks

The three most recommended computer science textbooks with the badge. Each figure is 5 people. RecommendsCriticizes One comment

  1. Structure and Interpretation of Computer Programs by Abelson and Sussman

    55 recommend, 5 criticize, 92% approval

    Ranked 1 of 28 by recommenders

    Deepens understanding of computer science fundamentals

    Classic computer science text that teaches how programs are built, using Scheme to explore abstraction and interpretation; critics say some of its examples are non-idiomatic and dated.

    Check price on Amazon

    We may earn a commission. It never changes the order.

  2. The Art of Computer Programming by Donald E. Knuth

    28 recommend, 6 criticize, 82% approval

    Ranked 2 of 28 by recommenders

    Timeless fundamentals that stay relevant

    Donald Knuth's multi-volume classic on algorithms, praised for rigor, depth and lasting relevance; critics say its MIX pseudo-assembly language feels dated.

    Check price on Amazon

    We may earn a commission. It never changes the order.

  3. Structure and Interpretation of Computer Programs by Abelson and Sussman

    12 recommend, 0 criticize, 100% approval

    Shares rank 3 of 28 by recommenders

    Taught through Scheme

    Recommended as a classic programming text that teaches computer science concepts through Scheme, with free online and PDF versions. Caveat: problems are mostly toy examples.

    Check price on Amazon

    We may earn a commission. It never changes the order.

We may earn a commission. It never changes the order.

All 28 computer science textbooks, ranked

Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.

Computer science textbooks ranked by the number of people who recommend them
Rank
1Structure and Interpretation of Computer Programsby Abelson and Sussman55592%12—Approved
2The Art of Computer Programmingby Donald E. Knuth28682%10—Approved
Tied 3Structure and Interpretation of Computer Programsby Abelson and Sussman120100%9—Approved
Tied 3Quantum Computation and Quantum Informationby Nielsen and Chuang120100%3——
5Digital Design and Computer Architectureby Harris and Harris80100%5——
Tied 6Types and Programming Languagesby Benjamin C. Pierce70100%4——
Tied 6Speech and Language Processingby Jurafsky and Martin70100%3——
Tied 6The Feynman Lectures on Computationby Richard Feynman7278%3——
Tied 9The Art of Computer Programming Volume 2by Donald Knuth60100%4——
Tied 9Reinforcement Learning: An Introductionby Sutton and Barto6275%3——
Tied 11The Elements of Computing Systemsby Nisan and Schocken50100%4——
Tied 11Software Foundationsby Benjamin Pierce et al.50100%4——
Tied 11Introduction to the Theory of Computationby Michael Sipser50100%4——
Tied 11Artificial Intelligence: A Modern Approachby Russell and Norvig5183%2——
Tied 15Computer Systems: A Programmer's Perspectiveby Bryant and O'Hallaron40100%2——
Tied 15The Art of Prologby Sterling and Shapiro4180%2——
Tied 15Elements of Information Theoryby Cover and Thomas40100%2——
Tied 15Information Theory, Inference, and Learning Algorithmsby David MacKay40100%2——
Tied 19The Art of Insight in Science and Engineeringby Sanjoy Mahajan30100%3——
Tied 19Concrete Semanticsby Nipkow and Klein30100%3——
Tied 19Microelectronic Circuitsby Sedra and Smith3175%2——
Tied 19Concepts, Techniques, and Models of Computer Programmingby Van Roy and Haridi30100%2——
Tied 19The Craft of Prologby Richard O'Keefe30100%2——
Tied 19The Art of Multiprocessor Programmingby Herlihy and Shavit3175%2——
Tied 25Concrete Abstractionsby Hailperin, Kaiser and Knight20100%3——
Tied 25Simply Logicalby Peter Flach20100%2——
Tied 25Functional Data Structures and Algorithmsby Tobias Nipkow2250%2——
Tied 25Programming: Principles and Practice Using C++by Bjarne Stroustrup20100%2——

How we rank

Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same computer science textbook in five threads counts once.

The badge goes to computer science textbooks that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.

Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.