Verwandte Artikel zu Pragmatic Clean Code: A practical guide to writing...

Pragmatic Clean Code: A practical guide to writing code that lasts - Softcover

Ślusarczyk, Krystyna

 
9781808493799: Pragmatic Clean Code: A practical guide to writing code that lasts

Inhaltsangabe

Write cleaner, easier-to-maintain code by learning practical refactoring techniques for names, functions, classes, dependencies, and tests

Key Features

  • Write readable, well-structured code that is easy to modify.
  • Apply SOLID principles through practical examples.
  • Recognize code smells and know when to refactor.
  • Turn messy code into maintainable solutions through step-by-step case studies.
  • Print or Kindle purchase includes a free PDF eBook.

Book Description

Most advice about code quality stops at the surface. Use good names. Keep methods short. This book goes further by explaining why clean code principles exist, what they achieve, and how to apply them with practical judgment.

You’ll begin with naming and method design before moving into classes and the SOLID principles as tools for everyday design decisions. You’ll then explore how coupling, cohesion, reuse, inheritance, and composition affect how easily a system can evolve.

The book also shows why well-designed code tends to be testable code and how dependency injection, unit tests, and mocks make changes safer. Formatting, comments, and other clean-code practices are considered in the situations where they affect maintainability.

Step-by-step refactoring case studies show not only what cleaner code looks like, but why each design decision is made. Although the examples use C#, the principles apply well beyond it, so developers working in other languages will find them useful too.

Written by software developer and programming instructor Krystyna Ślusarczyk, this book emphasizes practical judgment over memorized rules. By the end, you’ll be able to identify maintainability problems and refactor code into software that is easier to understand, test, and change.

What you will learn

  • Choose clear, expressive, and consistent names
  • Design focused functions with effective signatures
  • Apply SOLID principles to everyday design decisions
  • Reduce coupling between classes and improve cohesion within them
  • Organize classes and projects so the codebase is easy to navigate
  • Write readable unit tests and improve testability
  • Refactor messy C# code to make it readable, testable, and easy to extend

Who this book is for

This book is for developers who want to write code that is easier to read, modify, and maintain. It is particularly useful for anyone working in messy or legacy codebases who want a systematic approach to improving them, junior developers looking to build strong professional coding habits, and seniors who want to sharpen their skills and lead by example during code reviews. A basic understanding of programming and object-oriented concepts is recommended.

Table of Contents

  1. Understanding clean code
  2. Meaningful names
  3. Writing better methods
  4. Formatting code
  5. Applying the Single Responsibility Principle
  6. Applying the Open-Closed Principle
  7. Applying the Liskov Substitution Principle
  8. Applying the Interface Segregation Principle
  9. Applying the Dependency Inversion Principle
  10. Static methods and dependencies
  11. Designing smaller classes
  12. Organizing classes and projects
  13. Balancing coupling, cohesion, and reuse
  14. Using comments effectively
  15. Writing testable code and clean tests

Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.

Über die Autorin bzw. den Autor

Krystyna ¿lusarczyk is a software developer and programming instructor who has worked in the software industry since 2013. She has spent much of that time teaching, helping students and experienced developers alike make sense of concepts that usually get explained badly. Her approach is built on plain language and real examples, and on the conviction that understanding the reasoning behind a design decision matters far more than memorizing the rule that describes it.

„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.

Ihre gesetzlichen Garantierechte: Alle Verbraucher:innen in der EU profitieren von mindestens 2 Jahren gesetzlichem Garantieschutz für alle in der EU verkauften Konsumgüter. Mehr erfahren