Y Hacker News Books
Buy on Amazon4.4 out of 5, 402 ratings on Amazon

#145 of 2,629 all-time

Programming Pearls

Jon Bentley

35 people recommended it in 22 threads, 2008–2025.

What people on Hacker News said

swah
This book presents programming problems and solutions that enhance problem-solving skills and algorithmic thinking.

on HN, 2025

js2
A humbling book. I read it and think "that's really clever, I would not have thought of that."

on HN, 2022

rb2k_
It hasn't a lot of algorithms per se, but it has a lot of examples of how a different view on a problem can lead to an easier/more performant solution.

on HN, 2015

spaghetti
Programming Pearls is awesome too... there are solutions to many of the problems (but not all).

on HN, 2011

pkrumins
Or, books that are written in problem-hint-solution style, such as The Little Book of Semaphores and To Mock a Mockingbird. These are so fun and easy to read.

on HN, 2021

vram22
Among many other things, some clever / advanced uses of awk.

on HN, 2023

elipsey
--Coding excercises, advice, and annecdotes about problem solving. Get up on grandpa's knee and listen to a bunch of stories about UNIX.

on HN, 2020

And on Amazon

Makes you think harder

Programming pearls is a compendium of 15 columns previously published in Communications of the ACM. The columns cover a wide range of topics related to programming: from requirements gathering to performance tuning. The focus is primarily on coding techniques and algorithms. Each column has been reorganized as a chapter. Chapters usually start with the presentation of a practical problem. Then various solutions are presented and are used as lessons to be learned. The writing style is clear and fun. Programming Pearls is not a usual book teaching new programming concepts. …

a reader · verified purchase · 4/5

Little book of gems

If you want to learn about the latest web programming frameworks, design patterns, J2EE, .NET, CSS, RoR, etc. then please stay away from this book. Once you think you mastered it all, became a professional programmer with also a nice CS degree under your belt come back and start to read this book for pure pleasure and wisdom. It is with high probability that you'll have both and more than you could have imagined. Bentley's classic work is still relevant but not in ways most programmers will imagine at the beginning. …

Emre Sevinç · verified purchase · 5/5

true pearls of programming wisdom

If this book doesn't get you excited about programming, I don't know what will. Bentley writes about programming problems that are as glamorous as hollywood. The collective wisdom of the Bell labs super-stars shines through in the background information and problems which the author picked. I went back and read some of the columns from the ACM magazine which this book originated from. The book is definitely more up-to-date and readable. I cannot over-emphasize the value of trying out the problems in the book without cheating and looking at the answers or hints. …

A S · verified purchase · 5/5

Where it comes up