The Art of Readable Code
Simple and Practical Techniques for Writing Better Code
Publisher: O'Reilly Media
Released: November 2011
Pages: 206
Description
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Recently Viewed
Learning the vi and Vim Editors, 7th Edition
By Arnold Robbins, Elbert Hannah, Linda Lamb
July 2008
Ebook: $27.99
Print & Ebook: $38.49
Print: $34.99
Where 2.0: The State of the Geospatial Web
By Andrew Turner, Brady Forrest, Ben Lorica, Roger Magoulas
December 2008
Ebook: $399.00
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyThe Art of Readable Code
 
3.8

(based on 6 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (2)

  • 1 Stars

     

    (0)

80%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (6)
  • Easy to understand (5)
  • Accurate (4)
  • Well-written (4)

Cons

    Best Uses

    • Novice (5)
    • Student (4)
      • Reviewer Profile:
      • Developer (6)

    Reviewed by 6 customers

    Sort by

    Displaying reviews 1-6

    Back to top

     
    4.0

    Not at expert level ...

    By JustBeep

    from Bonn, Germany

    About Me Developer, QA Architect

    Verified Reviewer

    Pros

    • Accurate
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

    • Not comprehensive enough
    • Too basic

    Best Uses

    • Novice
    • Student

    Comments about oreilly The Art of Readable Code:

    I understand that very often it is hard to give good guidelines.
    Also they may differ for different programming languages.

    At least the database related sample I find debatable from the perspective of the general solution approach; it could be both - simpler and more effective.

    Still it gives unexperienced developers a sniff about where they could do better - ability to think and reflect assumed :-D ...

     
    5.0

    Great book of practical tips on coding

    By House of Burt

    from California

    About Me Coder, Developer

    Verified Reviewer

    Pros

    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Novice

      Comments about oreilly The Art of Readable Code:

      A great handbook for starting programmers on how to write code that can be easily read and understood. Veteran programmers may find some of the information redundant to coding practices in the industry, but odds are there's at least a few things in here they haven't considered. A lot of emphasis is placed on being clear in your variable and method naming. Code examples are in different languages, but are clear in their meaning.

      (5 of 5 customers found this review helpful)

       
      5.0

      The most focused book on readable code

      By Sebastian Larsson

      from Karlskrona, Sweden

      About Me Developer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate
        • Novice
        • Student

        Comments about oreilly The Art of Readable Code:

        "Code should be written to minimize the time it would take for someone else to understand it." - That code is easy to understand is the essence of this book. Personally, I find that I can usually look at the table of contents and see whether a book is interesting to me. Have a look for yourself! In relation to other reviews here, I found the format of this book good. No, there are not a lot of pictures or colours (nor should it be). However, the authors use comics to illustrate what they mean, "key ideas" (similiar to "tips" in the pragmatic series), and _very_good_ summaries at the end of each chapter. It feels like the authors have put a lot of effort into the structure of the book, not unlike the structure of how they propose code should be written.

        The contents of the book actually overlaps somewhat with existing literature like Kent Beck's "Implementation patterns", Uncle Bob's "Clean Code", and "Code complete", but it shouldnt be compared to the latter as another reviewer did. This book is actually much narrower than all the others, as it does not cover good design principles, testing etc. Just as good code, this book does one thing - explain and reason about how to improve code for readability.

        An interesting conflict is that meanwhile "clean code" is generally negative about needing to comment code, this book encourages to include "director commentary" (the stuff that goes through your head while coding) and "big picture comments" (that eases initial understanding of the code base).

        I did not see where the authors recommend writing lots of static methods. However, solving a given software problem often needs you to solve another unrelated problem first (the authors use an example where some text is stripped and converted into an URL). These unrelated subproblems can be generalized and put into a utility library for reuse. I dont think it is such a bad idea. At work, we have lots of XML manipulation spread across components and meanwhile there is a utility library for reading XML contents, there is nothing for creating. Something like that could be generalized and reused with a clean interface instead of code that is similiar although not quite alike.

        I think this book and clean code will get you a solid ground in writing readable and clean code.

        (1 of 5 customers found this review helpful)

         
        2.0

        Against Some of Clean Code Principles

        By r.

        from France

        About Me Developer, Educator, Maker

        Verified Reviewer

        Pros

        • Easy to understand
        • Helpful examples

        Cons

        • Against my views

        Best Uses

          Comments about oreilly The Art of Readable Code:

          Naming part of the book is interesting, and I agree with a good part of the recommendations. But recommending to use static methods is against the testability of code.

          Also, I would not recommend some uses of comments as presented. I like the approach of Clean Code, Thoughtworks Anthology to use small methods and to apply the Single Responsability Principle and Single Level of Abstraction Principle. If I should comment three blocks of code in a function, then I should use three sub-methods. These sub methods, given a proper name would remove the use of the comment.

          The 2 stars is more a "I do not agree" than a "Not good". No judgement here, just a different point of view. I agree more with Clean Code point of view.

          (3 of 13 customers found this review helpful)

           
          2.0

          Didn't compare well to Code Complete

          By teak

          from Jyväskylä, Finland

          About Me Developer, Physicist

          Verified Reviewer

          Pros

          • Accurate
          • Helpful examples

          Cons

            Best Uses

            • Novice
            • Student

            Comments about oreilly The Art of Readable Code:

            As I also have Code Complete I'm forced to compare this book to it.

            I would say that Code Complete covers almost everything presented in this book and lots more. Nevertheless this book goes deeper in everything than what is presented in Code Complete.

            The presentation in the book was mostly extremely plain, only color in the pdf was in the covers and links. Only other "effect" was few cartoon images but I think they brought mainly style conflict and emphasized the plainness of the book.

            For me the conclusion is that Code Complete is a better book.

            (3 of 3 customers found this review helpful)

             
            5.0

            Fantastic Book - Long Overdue

            By Robot Scott

            from Salt Lake City, UT

            About Me Designer, Developer, Educator

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Easy to understand
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate
              • Novice
              • Student

              Comments about oreilly The Art of Readable Code:

              I've read the pre-release on Safari and from that alone I can give this book high praise and add that this is long overdue! I've ordered copies for our developers and interns, and this will be the technical book we read and discuss this year.

              My only critique thus far would be their (albeit brief) treatment of Hungarian Notation in chapter 2 under the section "Attaching Extra Information To A Name" seems unfair. Rather than restate what Joel has already so eloquently stated, let me just provide a link to his 2005 article - which which would make a great introduction to this book - on making wrong code look wrong.

              http://www.joelonsoftware.com/articles/Wrong.html

              I understand that their statement about Hungarian notation is (likely) derived from textbook descriptions and current usage, but the original paper on Hungarian notation is much more similar to the general message of the book than they make it out to be.

              Displaying reviews 1-6

              Back to top

               
              Buy 2 Get 1 Free Free Shipping Guarantee
              Buying Options
              Save a Tree - Go Digital  what is this?
              Ebook: $27.99
              Formats: DAISY, ePub, Mobi, PDF
              Print & Ebook: $38.49
              Print: $34.99