~/talk

Reusable C++ Code, Reusable C++ Data Structures

Talkat C++ on Sea 2024 · 2024-07-02..07-05· [software-architecture]
slides:none on file

Shows how a real layout algorithm called vertical center example gets reused for widgets and rectangular bitmaps by refactoring to a templated function that operates on ranges of rectangles, uses minimal Concepts, and prefers function overloads, output functions or callable customization over heavy inheritance. Explains sharing code+state via CRTP or templated base classes, avoids heap and refcounting with intrusive lists, and warns how easy std::variant misuse can grow into an accidental polymorphic design that should have been a runtime-polymorphic value type.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14Reusing algorithms
  3. 8:56Generic functions
  4. 10:42Customizing functions
  5. 14:33CRTP
  6. 21:34Runtime polymorphism
  7. 24:45Polymorphism in UI
  8. 31:12Intrusive containers
  9. 34:29Hiding polymorphism
  10. 38:26Design mistakes
  11. 41:36std::variant for reuse
  12. 44:31Right abstractions
  13. 45:14Q&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.