Words of Wisdom
summary
Argues copies must have value semantics (copies are distinct, not entangled) and shows how a size_t underflow bug appears when an empty vector lets a subtraction wrap to huge values; warns shared_ptr behaves like a global variable. Demonstrates a concrete strong-ID wrapper on GitHub that prevents mixing projector and camera IDs via an explicit constructor and chooses .get as a deliberate “warning sign.” Explains naming choices for span/variant/optional to make equality and emptiness unambiguous.
AI-written summary · about
chapters (9)
- 0:00Intro
- 1:40Words of Wisdom
- 8:18Objects and Values
- 12:38Data Structures
- 16:25Sign verses unsigned
- 23:46Strong types
- 26:24Names
- 34:36Quotes
- 40:06Excuses
related talks
01h 20mRevisiting C++ Observers: Spooky Action at a Distance
44mPartially-formed Objects for fun and profit
01h 05mThe Imperatives Must Go!
01h 02m“Modern C++ Design (part 1 of 2)”
01h 00mDesign Idioms from an Alternate Universe
01h 03mBreaking Dependencies: The SOLID Principles
59mSymmetry in Code - Should We Care?
01h 02mImplementing static_vector: How Hard Could it Be?
