Clean C++20: Sustainable Software Development Patterns and Best Practices, 2/e (Paperback)

Roth, Stephan



Write maintainable, extensible, and durable software with modern C++. This book, updated for the recently released C++20 standard, is a must for every developer, software architect, or team leader who is interested in well-crafted C++ code, and thus also wants to save development costs. If you want to teach yourself about writing better C++ code, Clean C++20 is exactly what you need. It is written for C++ developers of all skill levels and shows by example how to write understandable, flexible, maintainable, and efficient C++ code. Even if you are a seasoned C++ developer, there are nuggets and data points in this book that you will find useful in your work.
If you don't take care with your codebase, you can produce a large, messy, and unmaintainable beast in any programming language. However, C++ projects in particular are prone to get messy and tend to slip into a maintenance nightmare. There is lots of C++ code out there that looks as if it was written in the 1980s, completely ignoring principles and practices of well-written and modern C++.
It seems that C++ developers have been forgotten by those who preach Software Craftsmanship and Clean Code principles. The web is full of C++ code examples that may be very fast and highly optimized, but whose developers have completely ignored elementary principles of good design and well-written code. This book will explain how to avoid this and how to get the most out of your C++ code. You'll find your coding becomes more efficient and, importantly, more fun.
What You Will Learn

  • Gain sound principles and rules for clean coding in C++
  • Carry out test-driven development (TDD)
  • Better modularize your C++ code base
  • Discover and apply C++ design patterns and idioms
  • Write C++ code in both object-oriented and functional programming styles

Who This Book Is For

Any C++ developer or software engineer with an interest in producing better code.


以現代C++撰寫可維護、可擴展和持久的軟體。這本書已更新至最新的C++20標準,對於每位開發者、軟體架構師或團隊領導者來說都是必讀之作,他們對精心打造的C++程式碼感興趣,並希望節省開發成本。如果你想自學如何撰寫更好的C++程式碼,《Clean C++20》正是你所需要的。本書適用於各種技能水平的C++開發者,並通過實例展示如何撰寫易懂、靈活、可維護和高效的C++程式碼。即使你是一位經驗豐富的C++開發者,本書中也有一些寶藏和資料點,對你的工作會有所幫助。




  • 獲得C++乾淨編碼的原則和規則

  • 進行測試驅動開發(TDD)

  • 更好地模組化你的C++程式碼庫

  • 發現並應用C++設計模式和慣用語法

  • 以物件導向和函數式編程風格撰寫C++程式碼




Stephan Roth is a coach, consultant, and trainer for systems and software engineering with German consultancy company oose Innovative Informatik eG located in Hamburg. Before he joined oose, he worked for many years as a software developer, software architect, and systems engineer in the field of radio reconnaissance and communication intelligence systems. He has developed sophisticated applications, especially in a high-performance system environment, and graphical user interfaces using C++ and other programming languages. Stephan is an active supporter of the Software Craftsmanship movement and is concerned with principles and practices of Clean Code Development (CCD).


Stephan Roth 是德國顧問公司 oose Innovative Informatik eG 在漢堡的系統和軟體工程的教練、顧問和培訓師。在加入 oose 之前,他在無線偵察和通信情報系統領域擔任多年的軟體開發人員、軟體架構師和系統工程師。他開發了複雜的應用程式,尤其是在高性能系統環境下,並使用 C++ 和其他程式語言開發圖形使用者介面。Stephan 是軟體工藝運動的積極支持者,關注乾淨程式碼開發(CCD)的原則和實踐。