Dark Light
-6%
, , ,

Clean Code: A Handbook of Agile Software Craftsmanship

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, who has helped bring agile principles from a practitioner’s point of view to tens of thousands of programmers, 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 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 Codeis 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 What “smells” and heuristics can help you identify bad codeThis 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 brand

bfbfbfbf

Robert C. Martin SeriesRobert C. Martin Series

For those who want to increase their skills and proficiency to the level of a Master Craftsman.

Explore more of the series

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

CoverCover

ASIN ‏ : ‎ 0132350882
Publisher ‏ : ‎ Pearson; 1st edition (August 1, 2008)
Language ‏ : ‎ English
Paperback ‏ : ‎ 464 pages
ISBN-10 ‏ : ‎ 9780132350884
ISBN-13 ‏ : ‎ 978-0132350884
Item Weight ‏ : ‎ 1.65 pounds
Dimensions ‏ : ‎ 6.8 x 0.9 x 9 inches

Compare

$46.99 $49.99

Price: $49.99 - $46.99
(as of Jul 20, 2024 03:24:51 UTC – Details)



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…

Customers say

Customers find the book’s content good and well organized. They also say it’s a terrific starting point to produce clean code and simple to follow. Opinions are mixed on the Java-specific content, with some finding it easy to read and understand while others say it’s needlessly complex and obtuse.

AI-generated from the text of customer reviews

Based on 7 reviews

0.0 overall
0
0
0
0
0

Add a review

  1. Peter J. Hanson

    Excellent for the whole team
    As CTO of a software company I co-founded, I’m not only looking for books that help me improve individually, but also books that the whole development team – from developers to architects – may find useful. Robert C. Martin’s Clean Code does both, and, like the good code described therein, it’s well written, clear, and easy to read. Martin includes many helpful examples and his suggestions are applicable to any programming language.Ideally, each developer takes charge of their own education and is constantly improving their skillset, an aspect that Martin covers in The Clean Coder. I view it as an important part of my job to help my team improve. To do so, I distill a lot of written material down to actionable components and provide that to my development team. Concepts from Clean Code have become very helpful guides for them. Below are a few of my favorite takeaways.The first is what Martin calls The Boy Scout Rule: “Leave the campground a little cleaner than you found it.” It’s a great concept, not only because it’s simple to follow, but also because it has broad applicability and can be used on any project. Essentially, when a team member works on a piece of code, they should aim to improve it somehow by the time their task is finished. A few examples of this among many are: fixing an unclear variable name, breaking up a large function into smaller functions, or cleaning up a conditional for improved clarity. With everyone on the team doing this, the code improves over time and everyone feels responsible for the code whether they wrote it personally or not. Even if something can’t be addressed immediately, developers are encouraged to log the issues they see.Another of my favorite takeaways is the Three Laws of TDD, a concept I was able to quickly roll out to the team as a framework to follow for how TDD should be conducted on a project. This virtually ensures that all of your product code has test coverage. It also helps make most of your code SOLID (https://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29), since code that is built in this fashion is structured with SOLID concepts in mind. This is a must for effective testing.Finally, the topics of proper identifier names and commenting really resonated with me and my team. In our company, we tend to “adopt” existing codebases – projects that have already been started by other developers whose code is of widely varying quality. If we’re lucky, it’s structured well and demonstrates best practices and approaches in how it’s constructed. Unfortunately, the code is sloppy at times and requires some TLC to get it in shape. A part of that process is understanding what the existing application does. As Clean Code correctly outlines, many comments are superfluous or even plain wrong and misleading. As a team, we don’t blindly trust the accuracy of existing comments and instead go right to the application’s code to determine what it does. This is where proper naming comes into play. With good names, the code reads like comments or as a narrative of what the application does, nullifying most needs for additional commenting. Simply put, the code comments itself. We also use refactoring tools to improve names and clean up comments as we go. Of course, by doing so, we’re also applying the Boy Scout Rule.Overall, Clean Code is a wonderful book with much useful and immediately-applicable information for developers of all levels. If you’re looking for a book that will help make you a better developer, this will.

    Peter J. Hanson

  2. Arijit Chakraborti

    Learning to leave the code cleaner than before
    As part of our learning activities, we learn quite a few programming languages. We also learn designs, patterns, good coding practices, and many more. We don’t usually spend time to learn how to write a good, readable code. The relevance of this book is enormous. Not just the programmers should read it, the education providers should also read it. In fact, the education providers should plan to include this in their curriculum associated with every programming languages.I started reading this book and finished it in almost three consecutive sittings. That way, the book is well structured, and the topics are well sequenced. The author cautioned at the beginning of the book that it is not for the armchair readers. The reader should spend adequate effort to read through the code examples, think through those, and try out some of those through self scribbling. This is indeed necessary for the coders. This is also necessary for the instructors of coding, or programming languages. I chose to skim through the examples with just enough thinking while paying attention to every detail of the English text. Such speed reading worked for me too. Such reading technique should work for all who are not into direct coding today, but was a programmer once upon a time, and spends a lot of time in conversing with the programmers nowadays.Coming back to the content of the book – this was quite informative and thought provoking. I read it fully and tried to jot down my takeaways from this book reading. I have got six of them.I learned the general rules for commenting, and summarized those in four points. I learned the general rules for code formatting, and summarized those in four points. I learned the general practice of code size – for a significant system, for a code file, for a typical function. I learned the general rules of organizing concepts and variables, and summarized those in five points. In fact, the definition of concepts was itself was a new learning for me. I learned the three laws of test driven development, rather I re-learned those once more while reading this book. Finally, I jotted down the final takeaway – leave the code cleaner than what you had started with.The book is full of good references, in fact at the end of every chapter. I tried to summarize the list of further readings, and I got another five book titles listed in my to-read list. I read it on my Kindle device, and on my desktop using Amazon Cloud Reader – the formatting was good.As coders, we all have the responsibility to leave the code cleaner than what we start with. As code reviewers, we all have the responsibility to comment on the cleanliness of the codes. As the supervisor or manager of coders, we all have the responsibility to communicate the importance of clean coding and to encourage coders towards clean coding. I will recommend to all these group of people to read this book, and practice the clean coding techniques described here.Good work indeed!

    Arijit Chakraborti

  3. Erick Garcia

    Llego completito y en forma, y muy bueno para empezar a programar y tener buenos hábitos

    Erick Garcia

  4. Ícaro

    O livro é muito bom de ler. São muitos aprendizados que já dá para começar a aplicar rapidamente.Algumas coisas mencionadas no livro precisam ser bem medidas, pois não são verdades absolutas e você precisa adaptar para sua situação.Como o autor deixa claro, esse livro é como se fosse uma escola de karatê. Existem várias escolas de karatê, cada uma com seus ensinamentos e verdades.

    Ícaro

  5. Emre AKA

    sağlam şekilde elime ulaştı. teşekkürler

    Emre AKA

  6. Chris

    “Clean Code: A Handbook of Agile Software Craftsmanship” von Robert C. Martin ist ein unverzichtbares Handbuch für Softwareentwickler, das die Grundlagen und Prinzipien sauberer Programmierung vermittelt.Das Buch bietet praxisnahe Ratschläge und bewährte Methoden, um Code verständlicher, wartbarer und effizienter zu gestalten. Es behandelt Themen wie benennungskonventionen, Kommentierung, Klassenstruktur und vieles mehr.Robert C. Martin, auch bekannt als “Uncle Bob”, präsentiert seine Konzepte in einer leicht verständlichen und anschaulichen Weise. Die zahlreichen Beispiele und Fallstudien veranschaulichen die Prinzipien und helfen den Lesern, sie in der Praxis umzusetzen.Das Buch ist sowohl für erfahrene Entwickler als auch für Neueinsteiger geeignet und bietet wertvolle Einsichten und Techniken, um hochwertigen Code zu schreiben.Insgesamt ist “Clean Code” ein unverzichtbares Nachschlagewerk für jeden, der sich mit Softwareentwicklung beschäftigt und seine Fähigkeiten verbessern möchte.

    Chris

  7. Andrej Lavrinovic

    So good. So easy formulated. So useful. A lot of things are so obvious, but for some reason not many developers are following such elementary rules. Highly recommend to read, and doesn’t metter if you experienced developer or just begginer. I also wish this book to be translated on indian languages. Guys, I very much like you. We are very close mentally. I have a lot of indian friends due to proffession. But, the way you coding is …. pleas, please, please – read this book.

    Andrej Lavrinovic