~/talk

Investigating Legacy Design Trends in C++ & Their Modern Replacements

Talkat C++Now 2024 · 2024-04-29..05-03· [legacy-modernisation]
slides:none on file

Compares concrete replacements for legacy patterns: shows classic Singleton, Meyers Singleton, and Monostate examples and argues monostate hides global static state and testing costs remain; demonstrates dependency injection vs factory plumbing and when DI reduces test pain; instruments SFINAE, type_traits and C++20 Concepts to shrink template errors and contrasts CRTP compile-time polymorphism with virtuals and C++23 deducing this, with code samples and compiled-error comparisons to show where newer features actually improve diagnostics or merely shift complexity.

AI-written summary · about

  1. 0:00Introduction
  2. 3:05Global state trends
  3. 10:51Monostate pattern
  4. 15:30Dependency injection
  5. 27:28SFINAE and concepts
  6. 43:20Polymorphism techniques
  7. 52:54Multi-level inheritance
  8. 58:34Design methodologies
  9. 1:18:45Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.