The Art of Readable Code

As programmers, we’ve all seen source code that’s so ugly and buggy it makes our brain ache. And let’s be honest, we’ve all written code like that. With this book, you’ll learn to write code that’s easy to read and understand. You’ll have more fun and your coworkers will love you.

The Art of Readable Code focuses on the nuts and bolts of programming, with simple and practical techniques you can use every time you sit down to write code. You’ll find tips throughout the book, with easy-to-digest code examples, helpful illustrations, and cartoons for fun.

  • Learn to pick variable names that are “dense with information”
  • Organize your loops and conditionals so they’re easy to understand
  • Make your comments short and sweet
  • Recognize when your code is doing too many things at once
  • Write tests that are concise, but thorough
  • Master the art of breaking hard problems into many smaller ones

Table of Contents
Chapter 1 Code Should Be Easy to Understand
Chapter 2 Packing Information into Names
Chapter 3 Names That Can’t Be Misconstrued
Chapter 4 Aesthetics
Chapter 5 Knowing What to Comment
Chapter 6 Making Comments Precise and Compact
Chapter 7 Making Control Flow Easy to Read
Chapter 8 Breaking Down Giant Expressions
Chapter 9 Variables and Readability
Chapter 10 Extracting Unrelated Subproblems
Chapter 11 One Task at a Time
Chapter 12 Turning Thoughts into Code
Chapter 13 Writing Less Code
Chapter 14 Testing and Readability
Chapter 15 Designing and Implementing a “Minute/Hour Counter”

Book Details

  • Paperback: 204 pages
  • Publisher: O’Reilly Media (November 2011)
  • Language: English
  • ISBN-10: 0596802293
  • ISBN-13: 978-0596802295
Download [31.9 MiB]

You may also like...

Leave a Reply