~/talk

Better Code: Relationships

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture, c-and-cpp]
links:none on file
slides:none on file

Crashes usually trace to mismanaged relationships, so the presentation demonstrates concrete fixes: model ownership and witnessed relationships to track copies/moves and avoid iterator invalidation; treat STD move as unsafe because it can invalidate meaning; refactor a save-after-idle timer by injecting a timer and scheduler (no globals) and it works with zero heap allocations; replace unordered_map registries with a compact vector+optional Russian coat-check pattern that minimizes allocations and yields huge practical speedups (author measures a ~640x iteration-time gap driven by allocations).

AI-written summary · about

  1. 0:00Introduction
  2. 1:37The role of relationships
  3. 3:45Defining entities and connections
  4. 10:41Witnessed relationships
  5. 14:07Meaning and representation
  6. 19:55Safety and efficiency
  7. 24:17Concepts and axioms
  8. 30:20Contracts and constraints
  9. 35:16Composite objects
  10. 38:17Architecting with intention
  11. 48:16Registry patterns
  12. 58:40Consistency and contradictions
  13. 1:14:48Conclusion 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.