~/talk

Design Patterns - The Most Common Misconceptions (2 of N)

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [software-architecture]
slides:none on file

Compares CRTP, C++23 explicit object parameters and std::variant with concrete code patterns and a 10,000‑shape benchmark (225,000 translate ops, GCC 13.2 / Clang 18.14 on an 8‑core Intel) showing variant implementations can be faster (up to ~2x with impark::variant). Argues static interface (CRTP for opt‑in families) differs from mixin (CRTP for shared implementation) and that std::variant targets a fixed set of types with open operations while virtual functions target an open set of types with closed operations, so they are not interchangeable.

AI-written summary · about

  1. 0:00Introduction to misconceptions
  2. 2:21Curiously recurring template
  3. 8:20Explicit object parameters
  4. 13:24Static interfaces vs mixins
  5. 19:12Concepts vs crtp
  6. 23:53The shape problem with oop
  7. 33:44Variant as a replacement
  8. 38:47Architecture over performance
~/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.