Clean Code: A Handbook of Agile Software Craftsmanship and over 670,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
Have one to sell? Sell yours here
or
Get a $18.07 Amazon.com Gift Card
Clean Code: A Handbook of Agile Software Craftsmanship
 
 
Start reading Clean Code: A Handbook of Agile Software Craftsmanship on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Clean Code: A Handbook of Agile Software Craftsmanship [Paperback]

Robert C. Martin (Editor)
4.3 out of 5 stars  See all reviews (73 customer reviews)

List Price: $47.99
Price: $37.43 & this item ships for FREE with Super Saver Shipping. Details
You Save: $10.56 (22%)
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 delivered Friday, September 10? Choose One-Day Shipping at checkout. Details
26 new from $29.50 22 used from $28.29
Textbook StudentJoin Amazon Student and get FREE Two-Day Shipping for one year with Amazon Prime shipping benefits.

Formats

Amazon Price New from Used from
Kindle Edition $24.07  
Paperback $37.43  
Sell This Book Back for $18.07
Whether you buy it used on Amazon for $28.29 or somewhere else, you can sell it back to our Textbook Buyback Store at the current price of $18.07 through December 31, 2010. Restrictions Apply
Used Price$28.29
Buyback Price$18.07
Price after
Buyback
$10.22

Frequently Bought Together

Clean Code: A Handbook of Agile Software Craftsmanship + The Pragmatic Programmer: From Journeyman to Master + Refactoring: Improving the Design of Existing Code
Price For All Three: $112.44

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • The Pragmatic Programmer: From Journeyman to Master$29.99

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Refactoring: Improving the Design of Existing Code$45.02

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought


Editorial Reviews

Product Description

Even bad code can function. But if code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn’t have to be that way.

Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship. Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer—but only if you work at it.

What kind of work will you be doing? You’ll be reading code—lots of code. And you will be challenged to think about what’s right about that code, and what’s wrong with it. More importantly, you will be challenged to reassess your professional values and your commitment to your craft.

Clean Code is divided into three parts. The first describes the principles, patterns, and practices of writing clean code. The second part consists of several case studies of increasing complexity. Each case study is an exercise in cleaning up code—of transforming a code base that has some problems into one that is sound and efficient. The third part is the payoff: a single chapter containing a list of heuristics and “smells” gathered while creating the case studies. The result is a knowledge base that describes the way we think when we write, read, and clean code.

Readers will come away from this book understanding
  • How to tell the difference between good and bad code
  • How to write good code and how to transform bad code into good code
  • How to create good names, good functions, good objects, and good classes
  • How to format code for maximum readability
  • How to implement complete error handling without obscuring code logic
  • How to unit test and practice test-driven development
This book is a must for any developer, software engineer, project manager, team lead, or systems analyst with an interest in producing better code.

From the Back Cover

Even bad code can function. But if code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn’t have to be that way.

Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship. Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer—but only if you work at it.

What kind of work will you be doing? You’ll be reading code—lots of code. And you will be challenged to think about what’s right about that code, and what’s wrong with it. More importantly, you will be challenged to reassess your professional values and your commitment to your craft.

Clean Code is divided into three parts. The first describes the principles, patterns, and practices of writing clean code. The second part consists of several case studies of increasing complexity. Each case study is an exercise in cleaning up code—of transforming a code base that has some problems into one that is sound and efficient. The third part is the payoff: a single chapter containing a list of heuristics and “smells” gathered while creating the case studies. The result is a knowledge base that describes the way we think when we write, read, and clean code.

Readers will come away from this book understanding
  • How to tell the difference between good and bad code
  • How to write good code and how to transform bad code into good code
  • How to create good names, good functions, good objects, and good classes
  • How to format code for maximum readability
  • How to implement complete error handling without obscuring code logic
  • How to unit test and practice test-driven development
This book is a must for any developer, software engineer, project manager, team lead, or systems analyst with an interest in producing better code.


Product Details

  • Paperback: 464 pages
  • Publisher: Prentice Hall; 1 edition (August 11, 2008)
  • Language: English
  • ISBN-10: 0132350882
  • ISBN-13: 978-0132350884
  • Product Dimensions: 9.1 x 6.9 x 0.9 inches
  • Shipping Weight: 1.5 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (73 customer reviews)
  • Amazon Bestsellers Rank: #13,235 in Books (See Top 100 in Books)
    #90 in  Books > Computers & Internet > Programming > Languages & Tools
    #44 in  Books > Computers & Internet > Programming > Software Design, Testing & Engineering > Software Development

More About the Author

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

Visit Amazon's Dean Wampler Page

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Clean Code: A Handbook of Agile Software Craftsmanship
81% buy the item featured on this page:
Clean Code: A Handbook of Agile Software Craftsmanship 4.3 out of 5 stars (73)
$37.43
Code Complete: A Practical Handbook of Software Construction
7% buy
Code Complete: A Practical Handbook of Software Construction 4.7 out of 5 stars (121)
$31.49
The Pragmatic Programmer: From Journeyman to Master
5% buy
The Pragmatic Programmer: From Journeyman to Master 4.4 out of 5 stars (153)
$29.99
Growing Object-Oriented Software, Guided by Tests
4% buy
Growing Object-Oriented Software, Guided by Tests 4.8 out of 5 stars (13)
$34.05

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(17)

Your tags: Add your first tag
 

 

Customer Reviews

73 Reviews
5 star:
 (45)
4 star:
 (17)
3 star:
 (6)
2 star:
 (1)
1 star:
 (4)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (73 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
31 of 31 people found the following review helpful:
5.0 out of 5 stars Applying the Boy Scout Rule..., September 23, 2008
Amazon Verified Purchase(What's this?)
This review is from: Clean Code: A Handbook of Agile Software Craftsmanship (Paperback)
When you do code maintenance, you can really "love" or "hate" a person that you do not even know just by the code he or she has written. Messy code almost always goes hand in hand with lower productivity, lower motivation, and a higher number of bugs. In the first chapter, Robert C. Martin presents in a very instructive way, the opinion from very well-known personalities about what "clean code" is, and also suggests we apply the Boy Scout Rule (Leave the campground cleaner that you found it) to our code. The following chapters present practical advice about how to do this cleaning (or even better, how to avoid the mess in the first place).

The suggestions presented in the book (meaningful names, pertinence of comments, code formatting, etc) may sound very familiar to any experienced programmer but they are presented with such a level of detail and with very illustrative examples that it is almost impossible not to learn valuable things chapter by chapter. All the examples are in Java, but the guidelines they illustrate can be applied, in most of the cases, to other languages.

The most challenging chapter to read (but also a very valuable one) was the Refactoring of the class SerialDate (from the JCommon library). It is a real-life example and the author shows step-by-step what it takes to do refactoring. The last chapter, "Smells and Heuristics" makes a very good closure presenting in categories and in a condensed way, potential problems and suggested ways to solve/mitigate them.

I enjoyed reading this book and after finishing it, I decided to apply the Boy Scout Rule. I took a module written in a procedural language and not only managed to improve the clarity of the code, but also reduced the number of lines from more than 1,100 to 650. The next person to touch this code will certainly be happy to deal with cleaner code!
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
28 of 30 people found the following review helpful:
5.0 out of 5 stars A must-buy for object-oriented developers, August 21, 2008
This review is from: Clean Code: A Handbook of Agile Software Craftsmanship (Paperback)

When most people hear the term "bad writing" they understand the term: Confusing, inconsistent, rambling, big words used incorrectly.

In fact, we have lots and lots of educational programs designed to teach grammar, composition, journalism, and fiction. Master's Degrees in the subject, even.

But for software development we seemed obsessed with "architecture" (whatever that means), process and patterns.

In this book, Bob Martin takes a specific stab at what good code looks like. He provides rules, examples, and even sample transformations.

It is not an easy book. If you are a new developer, you can invest a lot of time and energy into really absorbing the concepts and practicing them yourself. If you are more senior, you may disagree, you may struggle, you may toss the book in a corner and yell at it ...

But then you'll pick it back up again. And you will be a better developer for it.

One thing that I struggle with about the traditional CS cirricula is that so little attention is spent on maintenance, which is the vast majority of actual development time. This book presents an aesthetic and the skills to write maintainable code. If you teach software development, you'll want to use this book in your courses.

Student, Journeyman, Master, or Instructor - A book like this belongs on your bookshelf. Follow the advice in it, or have an explanation why not - either way you'll be a strong developer.

Of course, there are other books in this area. What struck me about this one is the quality of the writing; it is truly engaging and -- a little inspiring. That quality is so rare in technical books that I give this one five stars.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
17 of 17 people found the following review helpful:
4.0 out of 5 stars writing clean readable maintainable code - by example, September 14, 2008
By Jeanne Boyarsky (New York, NY) - See all my reviews
This review is from: Clean Code: A Handbook of Agile Software Craftsmanship (Paperback)
"Clean Code" focuses on how to write "good" code. Where "good" is defined as being easy for others to read and maintain. It's not that I disagree with the definition of "good" here. The quotes are because 'bad" code is easier to identify. Then there is "good" code and really "great" code. The code in this book is what we should aspire to write.

There are three main sections to the book. The first describes principles with examples. I liked this section best including the chapters written by other experts. The third is the actual "smells and heuristics." While they are good, they were so short they wound up being a summary.

The second section is the case studies. Martin warns up front that this will involve a lot of reading code and cross referencing. I had trouble with flipping back and forth between the chapter, rules and an appendix at the same time. So much flipping was disruptive to my train of thought - even with three bookmarks.

Martin is good about referencing other related titles such as "Implementation Patterns." If you haven't yet read "Implementation Patterns", I recommend starting with that title. It's easier reading which is helpful when newer to a topic. Also while both books are very good, I liked "Implementation Patterns" better. (see my review on that title for why)

The actual content was excellent. The book only loses a point for the logistical issues in reading it.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars If your not sure how good your code is read this!
I have been a Java programmer for a couple of years now and while I know I have a good appreciation for OO concepts and their application I wasn't sure whether my code was... Read more
Published 26 days ago by Mr. Jonathan Jackson

5.0 out of 5 stars A book about how to produce quality code
One of the best books I've read about how to design and produce quality code. Being a professional software developer/craftsman is more than just being able to solve hard... Read more
Published 1 month ago by Bob Seitsinger

5.0 out of 5 stars Excellent Software Development Book
It is very unusual for me to actually read a programming book all the way through, typically I just read select parts of select chapters. Read more
Published 1 month ago by Ckross

5.0 out of 5 stars Incredibly Well Written, and Well Argued
This is a crystal clear introduction to agile programming. It covers basic topics like SRP and DIP in a very (very) accessible style. Read more
Published 1 month ago by Adam J. Rackis

5.0 out of 5 stars Clean Code: A Handbook of Agile Software Craftsmanship
This book is far better then I expected. Much more in depth and looking at real codeing problems and shows great ways to solve them. Read more
Published 1 month ago by Dejung

5.0 out of 5 stars Excellent book
I'd recommend everybody to read this book. Many good examples and practices and it's all written in a way that is easy to follow. Read more
Published 1 month ago by MesSer

5.0 out of 5 stars Great book
I don't agree with everything in this book, but it makes me think about the code I write and change it to the better.
Published 4 months ago by Jesper Kolbeck

4.0 out of 5 stars Great Book
I like this book very much. Reading it can change your attitude against your job as a software developer. Read more
Published 4 months ago by Felix Siegrist

3.0 out of 5 stars uneven, unbalanced
I was looking forward to read this, given the very interesting literature I have read in the past years that was authored by the book author. Read more
Published 4 months ago by arzewski

4.0 out of 5 stars Good but could've been better
I am a huge fan of "Uncle Bob". 15+ years ago I was reading his papers and learning a TON from them (back then, he was "Robert C. Martin"). Read more
Published 6 months ago by Charles Flowers

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   





Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.