
The Art of Readable Code
Dustin Boswell · 2011
Programming and computer science › Software design and clean code
#2,946 most recommended
Hacker News
17
mentions by 14 people · top 19% of 15,732 books
Open Library
5.00★★★★★★★★★★
3 ratings · 9 want to read
Wikipedia
—
No article yet
About the book
A practical guide to writing source code that other people, including the author later on, can read and understand quickly. It covers the basics of coding at the level of individual lines and small blocks: naming, comments, and formatting, along with simplifying loops, logic, and variables. It also addresses organizing code at the function level and writing test code that stays thorough and concise. Code should be written to minimize the time it takes someone else to understand it, and that standard applies even when the reader is the original author. The book claims that readability comes from concrete, repeatable techniques rather than from taste, and it supports this with many before-and-after examples of real code. Its central claims are that names and comments should convey intent, that layout should show structure, that complicated logic and variables can usually be simplified, and that each function should do one task.
Written by Claude from what it knows of this book.
What Hacker News says 79% recommend · 7% critical
In the commenters’ own words
I only program my side projects on the weekends, when I come back to the code I realize how poorly it's been written, especially if I've skipped a weekend…
Thanks everyone, the comments are much appreciated. Here's a list of books and other media resources recommended so far in the thread: Robert C. Martin, Clean…
What Open Library readers say 5.00 from 3 ratings
- 53
- 40
- 30
- 20
- 10
- 9 want to read
- 0 reading
- 3 have read
Only 3 ratings: treat the average as a hint.
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2011
- ISBN
- 9780596802295
- Editions known
- 6 at Open Library
- Open Library
- OL16483172W
Coding theoryComputer programming
Read next: its neighbours on the mosaic
Algorithms unlockedThomas H. Cormen · 2013 · recommended by 7 people · similar by subject and what people say about it
How Charts LieAlberto Cairo · 2019 · recommended by 5 people · similar by subject and what people say about it
Code SimplicityMax Kanat-Alexander · 2012 · recommended by 3 people · similar by subject and what people say about it
Code CompleteSteve McConnell · 1993 · recommended by 393 people · 3 people recommended both
A Philosophy of Software DesignJohn K. Ousterhout · 2018 · recommended by 163 people · 2 people recommended both
The psychology of computer programmingGerald M. Weinberg · 1971 · recommended by 44 people · similar by subject and what people say about it
JavaScriptDouglas Crockford · 2008 · recommended by 72 people · similar by subject and what people say about it
The Practice of ProgrammingBrian W. Kernighan · 1999 · recommended by 90 people · similar by subject and what people say about it
The art of unit testingRoy Osherove · 2009 · recommended by 12 people · similar by subject and what people say about it
Large-scale C++ software designJohn Lakos · 1996 · recommended by 24 people · similar by subject and what people say about it
Test-driven developmentKent Beck · 2002 · recommended by 30 people · similar by subject and what people say about it
Clean CodeRobert C. Martin · 2008 · recommended by 298 people · similar by subject and what people say about it
Beautiful CodeAndy Oram · 2007 · recommended by 48 people · similar by subject and what people say about it
The Pragmatic ProgrammerAndy Hunt · 1999 · recommended by 353 people · similar by subject and what people say about it
The C Programming LanguageBrian W. Kernighan · 1978 · recommended by 246 people · similar by subject and what people say about it
Structure and Interpretation of Computer ProgramsHarold Abelson · 1984 · recommended by 347 people · similar by subject and what people say about it
The Little SchemerDaniel P. Friedman · 1995 · recommended by 288 people · similar by subject and what people say about it
The art of computer programmingDonald Knuth · 1968 · recommended by 336 people · similar by subject and what people say about it
How to Design ProgramsMatthias Felleisen · 2001 · recommended by 277 people · similar by subject and what people say about it
Introduction to AlgorithmsThomas H. Cormen · 1990 · recommended by 274 people · similar by subject and what people say about it
The Elements of Computing SystemsNoam Nisan · 2005 · recommended by 204 people · similar by subject and what people say about it
Compilers, principles, techniques, and toolsAlfred V. Aho · 1986 · recommended by 195 people · similar by subject and what people say about it
Effective JavaJoshua Bloch · 2001 · recommended by 172 people · similar by subject and what people say about it
Programming PearlsJon Bentley · 1999 · recommended by 158 people · similar by subject and what people say about it