~/talk

Back to Basics: Object-Oriented Programming in C++

Talkat CppCon 2022 · 2022-09-11..09-16· [design-collaboration]
slides:none on file

Covers concrete C++ practices: use a constructor initialization list (four cases require it), prefer the rule of zero for resource management and immediately delete copy/assign when you add a destructor, prefer value semantics and stack allocation unless an object must outlive its scope, and use templates/static polymorphism for performance instead of virtual calls. Demonstrations include Point/Rectangle, pet and employee models and a spreadsheet cell design, showing that the state pattern avoids brittle inheritance and that these patterns compile and behave as described.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Build Acceleration
  3. 0:55Agenda
  4. 1:17ObjectOriented Programming
  5. 2:36Classes and Objects
  6. 2:51Stick to what you do
  7. 3:25Singular responsibility
  8. 3:36Crash syntax
  9. 4:23Points
  10. 4:38Public
  11. 4:52Private
  12. 5:11Data Members
  13. 5:57Member Functions
  14. 6:35Object Size
  15. 7:21Header and CPP
  16. 8:38Constructors
  17. 11:13Efficiency
  18. 13:03Initialization
  19. 13:40Contractual Delegation
  20. 14:20Copy Constructor
  21. 15:25Shallow Copy
  22. 17:00Assignment Operator
  23. 19:52Constructor
  24. 20:30Explicit Constructor
  25. 23:27mutable
  26. 25:44zero
  27. 28:38Inheritance
  28. 30:28Polymorphism
  29. 32:09Virtual Functions
  30. 33:11Usage Example
  31. 33:54Summary
  32. 34:25Part 2 Beyond the Classic Model
  33. 34:54Arrays vs Stacks
  34. 36:32Inheritance is overrated
  35. 36:50Rectangle vs Square
  36. 38:23Developer vs Engineer
  37. 40:54Employee
  38. 41:15State Pattern
  39. 43:06Strategy
  40. 43:44Type
  41. 45:59Factory Inheritance
  42. 49:42Substitution
  43. 51:53Too much abstractions
  44. 53:02Keep abstraction
  45. 53:39Make it hard to use incorrectly
  46. 54:26Implement the pet type not the pet
  47. 57:05Value Semantics
~/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.