~/talk

What Classes We Design and How

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 07:45· Online E, online· [rust]
slides:none on file

Claim: design classes by role not by topic — map Value, Relationship, Manager to the special members to write or omit. Concrete tools and patterns: use optional to represent moved‑from state in a unique manager, follow Rule of Zero unless a destructor is needed, prefer deleted move/assign trick (the “rule of the mover”) to make polymorphic or scope managers non‑copyable, avoid empty destructor bodies, and implement move/copy exactly to transfer or duplicate the resource. Examples include scope guards, unique_ptr semantics, and general managers; patterns work as presented.

AI-written summary · about

  1. 0:00Start
  2. 2:12Relation Semantics
  3. 2:42What Is a Value
  4. 9:47Dynamic Polymorphism with Virtual Member Functions
  5. 12:41Dynamic Polymorphism
  6. 14:50Technicalities of Relation Objects
  7. 19:23Unique Manager Types
  8. 19:59General Managers
  9. 24:29Unique Managers
  10. 31:24Define a Class
  11. 33:31Exceptions for Equals Default
  12. 38:12How Do We Prevent Copy Operations
  13. 42:27Polymorphic Base Class
  14. 43:47Manager Types
  15. 47:38Unique Manager
  16. 54:10General Manager
  17. 1:01:27How To Cope with Relation Objects
~/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.