~/talk

The hidden rules of world-class C++ code

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [developer-experience]
slides:none on file

Claim: the familiar factory method can be reimplemented without heavy inheritance while keeping delegation, extensibility, reuse and runtime selection. Demonstrates working code (repo: https://github.com/BorisSchaeling/worldclasscode) and compiles examples that swap virtual dispatch for std::function and Boost.TypeErasure or for templates and factory functions, returning unique_ptr where needed. Shows when runtime polymorphism is necessary, when type erasure or free functions are clearer, and that the alternate implementations actually build and run, with tradeoffs in scope, clarity and performance measured by practical examples.

AI-written summary · about

  1. 0:00The hidden rules of world-class C++ code
  2. 7:07What the Internets say
  3. 12:50Traditional implementation
  4. 15:37Modern C++ implementation
  5. 16:56How to do it with no design pattern
  6. 17:43Factory method pattern break down Meeting C++ 2017
  7. 24:51Global factory functions
  8. 30:13Factory methods
  9. 30:39Common interface
  10. 31:45Factory function objects
  11. 32:13Type erasure to the rescue
  12. 34:46Removing the Connection base class Meeting C++ 2017
  13. 41:23Removing the function objects
  14. 47:06What's so world-class about it?
  15. 51:49Separation of concerns
  16. 58:27Boost.Functional/Factory Meeting C++ 2017
  17. 58:48Type erasure by hand
  18. 59:19Boost Master class
~/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.