The Art of Readable Code and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $3.30 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading The Art of Readable Code on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

The Art of Readable Code [Paperback]

Dustin Boswell , Trevor Foucher
4.5 out of 5 stars  See all reviews (13 customer reviews)

List Price: $34.99
Price: $30.82 & FREE Shipping. Details
You Save: $4.17 (12%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Friday, May 24? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $30.82  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

November 23, 2011

As programmers, we’ve all seen source code that’s so ugly and buggy it makes our brain ache. Over the past five years, authors Dustin Boswell and Trevor Foucher have analyzed hundreds of examples of "bad code" (much of it their own) to determine why they’re bad and how they could be improved. Their conclusion? You need to write code that minimizes the time it would take someone else to understand it—even if that someone else is you.

This book focuses on basic principles and practical techniques you can apply every time you write code. Using easy-to-digest code examples from different languages, each chapter dives into a different aspect of coding, and demonstrates how you can make your code easy to understand.

  • Simplify naming, commenting, and formatting with tips that apply to every line of code
  • Refine your program’s loops, logic, and variables to reduce complexity and confusion
  • Attack problems at the function level, such as reorganizing blocks of code to do one task at a time
  • Write effective test code that is thorough and concise—as well as readable

"Being aware of how the code you create affects those who look at it later is an important part of developing software. The authors did a great job in taking you through the different aspects of this challenge, explaining the details with instructive examples."
—Michael Hunger, passionate Software Developer


Frequently Bought Together

The Art of Readable Code + Clean Code: A Handbook of Agile Software Craftsmanship
Price for both: $68.78

Buy the selected items together


Editorial Reviews

About the Author

Although raised in the circus, Dustin Boswell realized early on that he was better at computers than at acrobatics. Dustin received his B.S. from Caltech, where he got hooked on Computer Science, and then went to UC San Diego for his Master's Degree. He worked at Google for five years, on a variety of projects including web crawling infrastructure. Dustin is now an internet startup junkie who spends his free time hiking the Santa Monica mountains and being a new dad.

Trevor Foucher has been shipping software projects for over 10 years, including Windows 2000 and OneCare at Microsoft, and Webmaster Tools at Google. He's been an individual contributor, manager, and tech lead. His goal is to make code more readable and reliable.

Product Details

  • Paperback: 206 pages
  • Publisher: O'Reilly Media; 1 edition (November 23, 2011)
  • Language: English
  • ISBN-10: 0596802293
  • ISBN-13: 978-0596802295
  • Product Dimensions: 5.9 x 0.6 x 9.8 inches
  • Shipping Weight: 10.4 ounces (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (13 customer reviews)
  • Amazon Best Sellers Rank: #214,759 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.5 out of 5 stars
(13)
4.5 out of 5 stars
Most Helpful Customer Reviews
27 of 33 people found the following review helpful
3.0 out of 5 stars Nothing New December 12, 2011
Format:Paperback
Good coding practices/style is well worked territory. There are many book and web pages devoted to the subject. This book walks through well treaded territory: variable names, loop structures, code block organization, subroutine structures, etc. For an experienced programmer, there is nothing new in The Art of Readable Code. This is especially unfortunate because they start off with a measurable metric for readable code: how long does it take a programmer previously unfamiliar with the code to understand it. This seemed like a great idea and got me to buy the book. However once you get into the text, when comparing code snippet A with snippet B, instead of showing the two versions to a group of programmers and timing them, they give their opinion about which version would take less time to understand by some mythical programmer looking at the code for the first time. Now, I don't really disagree their opinions any of the topics in the book (ok, I like the ternary operator more than they do), but it is just opinion. I would love for someone to take the examples in this book and do the experiments. This would be hard, and maybe expensive, but the authors and I would surely learn something. That would be great book to read.
Was this review helpful to you?
5 of 5 people found the following review helpful
5.0 out of 5 stars Great advice for all programmers December 14, 2011
Format:Kindle Edition|Amazon Verified Purchase
I teach an introductory Java programming course. I spend a lot of time (my students might say that I spend too much time) reminding them that well placed comments, meaningful variable names, indentation, judicious use of blank lines, and so on all lead to code that is easier for them and for other programmers to read and understand. But, when these words come from me, I'm afraid that it comes across as "just another requirement to follow".

Along comes "The Art of Readable Code". The authors have written a very enjoyable, highly readable book about readability. They go beyond simply stating a set of guidelines, instead explaining the motivation behind each suggestion. I love that they show both good and bad from-the-field examples of how programmers write code. I found myself nodding in agreement with much of what they said. I also think they do a much better job than I when it comes to explaining that readable code is not simply a set of requirements to follow, but that there are simple compelling reasons behind readability, not the least of which is to make life easier for others who will read your code.

I have decided that I will begin making this a required reference for my students. Our school subscribes to Safari Online Books, which gives our students free access to O'Reilly books such as this one. Even if my students couldn't get it for free, I think it's a book I would want our computer science/software engineering majors to have handy as a reference. I bought the Kindle edition for myself, and found that it is very readable on the Kindle Fire...and much more relaxing to read this way than from the Safari site (and currently only about half the cost of buying the physical book).

From now on, I will let this book deliver the message to my students about readable code.
Comment | 
Was this review helpful to you?
4 of 4 people found the following review helpful
5.0 out of 5 stars Worth reading, great for lunch-time discussions December 21, 2011
Format:Paperback
The more code I write, the more care I take to make it readable for my future self. So I've thought about this subject for a while now. The authors of this book have managed to capture all of my thoughts, and a bunch more.

It's well-planned, written and edited. Not too long (184 pages) and the cartoons don't get in the way, and even occasionally add value. I admired the way that the authors recognized a few classic flame-war subjects, made their opinions known and then moved right along. I think the examples for each idea are all good ones.

I recommend reading it with a body of code in mind, so you can think about live examples of all the issues that the authors raise.

Disclaimer: I requested a copy of this book from O'Reilly so I could review it.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Very useful for junior software engineer
The book covers a lot of examples that junior software engineer will encounter. The suggestions are very reasonable. Read more
Published 6 days ago by C. Yang
5.0 out of 5 stars Great tips---not just for programmers
Yes, this book is about programming. From that point of view, it has tons of good tips to correct bad old habits. Read more
Published 1 month ago by pelesl
4.0 out of 5 stars Good concise tips
While this is basically yet-another-coding-style-guide, the tips are concise, painless, easy to implement, and definitely promote readability. Read more
Published 4 months ago by H. Hemken
5.0 out of 5 stars Flip through and keep on reference shelf
My copy just arrived and I've gotten enough value from flipping through it in 30 minutes to justify the cost. Read more
Published 13 months ago by Id
5.0 out of 5 stars Great - even for experienced developers
In short: this book deserves a space on bookshelf and not only for yourself, but to serve as reference when reviewing other's code. Read more
Published 14 months ago by Rodrigo De Castro
4.0 out of 5 stars Perhaps not new, but nice coverage of the subject
This is a book for anyone concerned about good programming practices and/or coding standards, though it does not require "deep" development involvement to understand what the... Read more
Published 16 months ago by Scott Duncan
4.0 out of 5 stars Excellent advice; if only it were commonly followed!
Insightful and practical coding advice from Dustin Boswell and Trevor Foucher. For years I've been saying that good code easy to understand. Read more
Published 16 months ago by Robert H. Stine Jr.
4.0 out of 5 stars The Art of Readable Code by Dustin Boswell and Trevor Foucher;...
Programmers Dustin Boswell and Trevor Foucher present The Art of Readable Code: Simple and Practical Techniques for Writing Better Code with the underlying premise that, "code... Read more
Published 16 months ago by Systems Dude
5.0 out of 5 stars Great Book For New Programmers
I think 'The Art of Readable Code' is a great book for any student that is new to the field of good code writing. Read more
Published 17 months ago by Dan McKinnon
5.0 out of 5 stars Clear and concise with zero rambling!
Very clearly and concisely written, wasting little time to get you the material you need to know to write good self explaining code. Read more
Published 18 months ago by R. Zauner
Search Customer Reviews
Only search this product's reviews


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 





Look for Similar Items by Category