~/talk

The Factory Pattern

Talkat CppCon 2021 · on Wednesday, 2021-10-27· at 14:00· online· [frontend-architecture]
slides:none on file

Explains a concrete claim: use a factory method to centralize creation and an extensible factory that stores name→callback pairs so new types register at run time via register_object and a map of creation callbacks GitHub code is provided and examples return shared or unique pointers Level files drive creation, per-class static counters report counts and the pattern appears in Ogre Blender Quake3 and Command and Conquer code bases with trade offs around parameters switch updates and pointer choice

AI-written summary · about

  1. 0:00Start
  2. 0:30The Factory Pattern
  3. 1:41How Did Folks Get Started in Programming
  4. 4:37The Design Pattern
  5. 12:08Make Object
  6. 18:16Design Patterns
  7. 19:59What Is a Creational Design Pattern
  8. 21:21Inheritance
  9. 22:11Object Inheritance Hierarchy
  10. 23:09Inheritance Hierarchy
  11. 24:44Create Objects
  12. 28:50Game Object Collection
  13. 30:51The Factory Methods
  14. 32:23Great Way To Hide Implementation Details for the Derived Class
  15. 32:41Header File
  16. 34:02Implementation Question
  17. 36:30The Builder Pattern
  18. 38:46Extensibility
  19. 40:47Tracking Our Object Counts
  20. 42:41Game Object Factory
  21. 43:58Create Object Callback
  22. 48:37Is the Pattern Actually Used
  23. 51:06Recap
  24. 52:43Conclusion
  25. 53:19Abstract Factory Pattern
  26. 54:22Questions
  27. 56:09Type Object Pattern
~/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.