Investigating C++ Legacy Design Trends: Newer Isn’t Always Better!
Talkat CppCon 2024 · on Friday, 2024-09-20· at 14:45· Adams A, 6700 North Gaylord Rockies Boulevard·
summary
Compares concrete replacements and measurements: shows C++20 Concepts make errors readable versus SFINAE/Boost that produce inscrutable template traces; compares Singleton/monostate implementations to dependency injection with constructor/setter patterns and testability tradeoffs; demonstrates CRTP, its multi‑level pitfalls, and how C++23 deducing this simplifies CRTP; counts where templates recreate as many dynamic dispatch sites as virtuals and where compile‑time approaches win on performance and readability. Includes code samples and compiler output.
AI-written summary · about
chapters (7)
- 0:00Legacy design trends in C++
- 3:57Index loops vs range-based loops
- 8:10Global variables and Singleton
- 18:48Concepts and template constraints
- 30:46Polymorphism alternatives
- 45:48Modern C++ alternatives
- 48:59Conclusion
related talks
01h 00mC++11/14 at Scale: What Have We Learned?
01h 54mCan C++ be 10x Simpler & Safer?
01h 42mCollective Amnesia?
01h 02mUp to Code
29mOrganizational Leadership with Modern C++
01h 03mKeynote: Abstraction Patterns
01h 10mKeynote: Strategies to Cope With Conflicting Design Patterns in C++ Development Teams
56mThe art of keeping your project from falling apart
