Discover 10 essential tips for writing cleaner C++ 20 code in this CppCon 2022 conference talk by David Sackstein. Learn how to create more readable, testable, and extensible code using modern C++ techniques. Explore the challenges of increasing code complexity and its impact on comprehension. Gain insights into core programming issues and their solutions through practical examples. Examine complex C++ code and witness its transformation using easily applicable guidelines. Engage in a discussion on implementing these tips in diverse projects. Delve into topics such as STL implementation, clean code tradeoffs, software design best practices, header management, error handling improvements, lazy iteration with generators, refactoring techniques, dependency injection, and inversion of control containers.
Overview
Syllabus
Intro
Implementation of the STL
Clean code tradeoffs
Best Practices for Software Design
Managing headers
Improving error handling
Use generators for lazy iteration
Refactoring Step
Dependency Injection
Constructor injection
Inversion of Control Container
Lessons Learnt
Taught by
CppCon