Clean Craftsmanship: Disciplines, Standards, and Ethics

Book description

How to Write Code You’re Proud of . . . Every Single Day

“. . . [A] timely and humble reminder of the ever-increasing complexity of our programmatic world and how we owe it to the legacy of humankind—and to ourselves—to practice ethical development. Take your time reading Clean Craftsmanship. . . . Keep this book on your go-to bookshelf. Let this book be your old friend—your Uncle Bob, your guide—as you make your way through this world with curiosity and courage.”
—From the Foreword by Stacia Heimgartner Viscardi, CST & Agile Mentor

In Clean Craftmanship, the legendary Robert C. Martin ("Uncle Bob") has written the principles that define the profession—and the craft—of software development. Uncle Bob brings together the disciplines, standards, and ethics you need to deliver robust, effective code and to be proud of all the software you write.

Robert Martin, the best-selling author of Clean Code, provides a pragmatic, technical, and prescriptive guide to the foundational disciplines of software craftsmanship. He discusses standards, showing how the world’s expectations of developers often differ from their own and helping you bring the two in sync. Bob concludes with the ethics of the programming profession, describing the fundamental promises all developers should make to their colleagues, their users, and, above all, themselves.

With Uncle Bobs insights, all programmers and their managers can consistently deliver code that builds trust instead of undermining it—trust among users and throughout societies that depend on software for their survival.

  • Moving towards the "north star" of true software craftsmanship: the state of knowing how to program well
  • Practical, specific guidance for applying five core disciplines: test-driven development, refactoring, simple design,
  • collaborative programming, and acceptance tests
  • How developers and teams can promote productivity, quality, and courage
  • The true meaning of integrity and teamwork among programmers, and ten specific commitments every software
  • professional should make

Register your book for convenient access to the book’s companion videos, updates, and/or corrections as they become available. See inside book for details.

Table of contents

  1. Cover Page
  2. About This eBook
  3. Halftitle Page
  4. Title Page
  5. Copyright Page
  6. Dedication Page
  7. Contents
  8. Foreword
  9. Preface
  10. Acknowledgments
  11. About the Author
  12. Chapter 1. Craftsmanship
  13. Part I: The Disciplines
    1. Extreme Programming
    2. Test-Driven Development
    3. Refactoring
    4. Simple Design
    5. Collaborative Programming
    6. Acceptance Tests
    7. Chapter 2. Test-Driven Development
      1. Overview
      2. The Basics
      3. Conclusion
    8. Chapter 3. Advanced TDD
      1. Sort 1
      2. Sort 2
      3. Getting Stuck
      4. Arrange, Act, Assert
      5. Test Doubles
      6. Architecture
      7. Conclusion
    9. Chapter 4. Test Design
      1. Testing Databases
      2. Testing GUIs
      3. Test Patterns
      4. Test-Specific Subclass
      5. Humble Object
      6. Test Design
      7. Breaking the Correspondence
      8. Transformation Priority Premise
      9. {} → Nil
      10. Nil → Constant
      11. Unconditional → Selection
      12. Value → List
      13. Statement → Recursion
      14. Selection → Iteration
      15. Value → Mutated Value
      16. The Transformation Priority Premise
      17. Conclusion
    10. Chapter 5. Refactoring
      1. What Is Refactoring?
      2. The Basic Toolkit
      3. Extract Method
      4. The Disciplines
      5. Conclusion
    11. Chapter 6. Simple Design
      1. YAGNI
      2. Covered by Tests
      3. Coverage
      4. Design?
      5. Maximize Expression
      6. The Underlying Abstraction
      7. Minimize Duplication
      8. Minimize Size
    12. Chapter 7. Collaborative Programming
    13. Chapter 8. Acceptance Tests
      1. The Discipline
      2. The Continuous Build
  14. Part II: The Standards
    1. Your New CTO
    2. Chapter 9. Productivity
      1. We Will Never Ship S**T
      2. Inexpensive Adaptability
      3. We Will Always Be Ready
      4. Stable Productivity
    3. Chapter 10. Quality
      1. Continuous Improvement
      2. Fearless Competence
      3. Extreme Quality
      4. We Will Not Dump on QA
      5. QA Will Find Nothing
      6. Test Automation
      7. Automated Testing and User Interfaces
      8. Testing the User Interface
    4. Chapter 11. Courage
      1. We Cover for Each Other
      2. Honest Estimates
      3. You Must Say NO
      4. Continuous Aggressive Learning
      5. Mentoring
  15. Part III: The Ethics
    1. The First Programmer
    2. Seventy-Five Years
    3. Nerds and Saviors
    4. Role Models and Villains
    5. We Rule the World
    6. Catastrophes
    7. The Oath
    8. Chapter 12. Harm
      1. First, Do No Harm
      2. Best Work
      3. Repeatable Proof
    9. Chapter 13. Integrity
      1. Small Cycles
      2. Relentless Improvement
      3. Maintain High Productivity
    10. Chapter 14. Teamwork
      1. Work as a Team
      2. Estimate Honestly and Fairly
      3. Respect
      4. Never Stop Learning
  16. Index
  17. Code Snippets

Product information

  • Title: Clean Craftsmanship: Disciplines, Standards, and Ethics
  • Author(s): Robert C. Martin
  • Release date: October 2021
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780136915805