~/talk

Hiding your Implementation Details is Not So Simple

Talkat CppNorth 2024 · 2024-07-21..07-24· [software-architecture]
slides:none on file

Argues why simple rules like “make members private” fail in real C++ code and gives concrete recipes: when public pair members break lazy or generic code, prefer functions or value semantics; use wrapper class or interface to prevent callers from inserting or erasing map entries; Concepts document intent but do not prevent misuse; pimpl hides build details; use the private token idiom to let make_unique work with factory-only construction; prefer state/strategy and factories to hide hierarchies. Watch if you want practical fixes, code patterns and tradeoffs.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:03Benefits of information hiding
  3. 2:53Challenges in information hiding
  4. 4:06Common implementation mistakes
  5. 8:31Analyzing std::pair and design
  6. 12:27Evolving interfaces and APIs
  7. 16:56API design principles
  8. 20:22SOLID and testing principles
  9. 22:48Context-specific design
  10. 25:52Strategies for better encapsulation
  11. 30:45C++20 Concepts and hiding details
  12. 36:46Practical exercises in encapsulation
  13. 53:12Managing hierarchies and pointers
  14. 58:20Advanced patterns for API enforcement
  15. 1:11:10Conclusion and Q&A
~/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.