Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Clean Code and over 300,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.
 
 
More Buying Choices
54 used & new from $34.22

Have one to sell? Sell yours here
 
   
Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
 
 
Start reading Clean Code on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series) (Paperback)

by Robert C. Martin (Author) "You are reading this book for two reasons..." (more)
Key Phrases: agile software development, vertical formatting, implementation patterns, String Arguments, Successive Refinement Listing, Kent Beck (more...)
4.4 out of 5 stars See all reviews (40 customer reviews)

List Price: $47.99
Price: $37.85 & this item ships for FREE with Super Saver Shipping. Details
You Save: $10.14 (21%)
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 Tuesday, July 21? Choose One-Day Shipping at checkout. Details
39 new from $34.22 15 used from $37.82
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $18.91
More Microsoft Learning
Explore the latest technologies from Microsoft's Professional Developers Conference with titles authored by the featured speakers.

Special Offers and Product Promotions


Frequently Bought Together

Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series) + 97 Things Every Software Architect Should Know + Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers)
Price For All Three: $84.01

Show availability and shipping details


Customers Who Bought This Item Also Bought

The Productive Programmer (Theory in Practice (O'Reilly))

The Productive Programmer (Theory in Practice (O'Reilly))

by Neal Ford
4.5 out of 5 stars (20)  $26.39
Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers)

Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers)

by Andy Hunt
4.6 out of 5 stars (38)  $23.07
Working Effectively with Legacy Code (Robert C. Martin Series)

Working Effectively with Legacy Code (Robert C. Martin Series)

by Michael Feathers
4.9 out of 5 stars (28)  $47.05
Code Complete: A Practical Handbook of Software Construction

Code Complete: A Practical Handbook of Software Construction

by Steve McConnell
4.8 out of 5 stars (107)  $31.49
Effective Java (2nd Edition) (Java Series)

Effective Java (2nd Edition) (Java Series)

by Joshua Bloch
4.9 out of 5 stars (35)  $44.66
Explore similar items

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.



About the Author
Robert C. “Uncle Bob” Martin has been a software professional since 1970 and an international software consultant since 1990. He is founder and president of Object Mentor, Inc., a team of experienced consultants who mentor their clients worldwide in the fields of C++, Java, C#, Ruby, OO, Design Patterns, UML, Agile Methodologies, and eXtreme programming.

See all Editorial Reviews

Product Details


Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
85% buy the item featured on this page:
Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series) 4.4 out of 5 stars (40)
$37.85
97 Things Every Software Architect Should Know
5% buy
97 Things Every Software Architect Should Know 4.1 out of 5 stars (13)
$23.09
Code Complete: A Practical Handbook of Software Construction
4% buy
Code Complete: A Practical Handbook of Software Construction 4.8 out of 5 stars (107)
$31.49
Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers)
3% buy
Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers) 4.6 out of 5 stars (38)
$23.07

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(10)
(2)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
Stephane Nakib suggested this product show on searches for "software development". What do you suggest?

 

Customer Reviews

40 Reviews
5 star:
 (25)
4 star:
 (10)
3 star:
 (3)
2 star:    (0)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
4.4 out of 5 stars (40 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
18 of 18 people found the following review helpful:
5.0 out of 5 stars Applying the Boy Scout Rule..., September 23, 2008
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!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
18 of 20 people found the following review helpful:
5.0 out of 5 stars A must-buy for object-oriented developers, August 21, 2008

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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 7 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
"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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


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

5.0 out of 5 stars Confirmation of/by experience
This book will not teach you new things, if you are an experienced programmer. But ... this book is also worth to be read for experienced programmers, as they will find the... Read more
Published 19 days ago by Hannes Wornig

1.0 out of 5 stars Don't get the Kindle version
[Kindle Version Review]

The one star is not a reflection of the content of the book, which is clearly a very fine treatise on coding practices, but of the fact that... Read more
Published 1 month ago by Wayne Bradney

5.0 out of 5 stars Very motivating
Found myself laughing many times when reading some of these examples of horrific code and practices. I'm currently in a project that has every bad example in it. Read more
Published 2 months ago by Robert

5.0 out of 5 stars Give this book to your co-workers for your own sake
If only all code was so Clean. There is nothing in here that any developer can't grasp, and there is nothing in here that every developer shouldn't know. Read more
Published 3 months ago by Jon R. Bettinger

5.0 out of 5 stars A terrific guide for Java programmers
This is primarily a book about code style. That sounds dull, but it doesn't have to be. Rather than just saying "do this," this book provides rational arguments to support... Read more
Published 3 months ago by Trevor Burnham

4.0 out of 5 stars Nice Read, great reminder
I really like reading uncle Bob stuff. Besides having great content, his style of writing is very easy to read. Read more
Published 4 months ago by Elliott Ohara

4.0 out of 5 stars Reading Clean Code Will Make You A Better Programmer
Reading Clean Code will make you a better computer programmer. Applying the programming techniques described in Clean Code to your work is like stripping layers of paint from... Read more
Published 4 months ago by Michael A. Jablonski

5.0 out of 5 stars Good advice delivered clearly and directly with examples
While this book includes many things I already knew, such as the Law of Demeter, it touches on them in a thorough and interesting way. Read more
Published 4 months ago by Brian Donovan

5.0 out of 5 stars Uncle Bob gets down and dirty with Clean Code
Robert C. Martin, fondly know to many as "Uncle Bob," was one of the 17 people involved in the creation of the Agile Manifesto and has been a strong proponent of writing clean... Read more
Published 4 months ago by Burkhardt Hufnagel

5.0 out of 5 stars Must-Read Work on Software Craftsmanship
Here's a rhetorical question: Should you work hard to ensure your software code is readable, well-structured, uncluttered with useless or flat-out wrong information, and is well... Read more
Published 4 months ago by James Holmes

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


Discover Oregon

Garmin Oregon at Amazon.com
You'll find that on the trail, the new Garmin Oregons exchange waypoints, tracks, and geocaches with other Oregon and Colorado units.

Shop all Garmin

 

Big Savings in Books

Bargain Books
Find great titles at fantastic prices in our Bargain Books Store.
 

Comfort and Style Underfoot

Shop for Flooring
Create the look you want in any room with ceramic tile, wood, laminate, or garage flooring that will stand the test of time.
 

Power in the Air

Shop for air nailers
Pneumatic nail guns are the most popular power nailers and are ideal for situations in which mobility is essential.

Shop for air nailers

 
Ad

 

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.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

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

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
My Soul to Lose
My Soul to Lose by Rachel Vincent
The Adventures of Sherlock Holmes
The Adventures of Sherlock Holmes by Arthur Conan, Sir, 1859-1930 Doyle

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates