Pragmatic Clean Code

A practical guide to writing code that lasts

Cover of Pragmatic Clean Code

EPUB · English

Price and availability

EPUB eBookUS store

$40.99

Sign in to buy

You’ll review your order and final price before payment.

Download from your library after delivery. Protected eBooks need a compatible reading app.

For personal use under the eBook licence.

Territorial availability

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Packt Publishing
Published
30 September 2026
ISBN
9781808493782
Subjects
Industrial quality control, Computer programming / software development, Programming & scripting languages: general, Industrial quality control, Computer programming / software engineering, Programming and scripting languages: general

About this book

Write cleaner, easier-to-maintain code by learning practical refactoring techniques for names, functions, classes, dependencies, and tests Key FeaturesWrite 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 DescriptionMost 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 Slusarczyk, 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 learnChoose clear, expressive, and consistent namesDesign focused functions with effective signaturesApply SOLID principles to everyday design decisionsReduce coupling between classes and improve cohesion within themOrganize classes and projects so the codebase is easy to navigateWrite readable unit tests and improve testabilityRefactor messy C# code to make it readable, testable, and easy to extendWho this book is forThis 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.]]>

Bibliographic data © Gardners Books Ltd.