~/talk

API Design Principles

Talkat CppNorth 2023 · 2023-07-17..07-19· [api-design, software-architecture]
links:none on file
slides:none on file

Argues that API work starts with top-down design—write example usage and docs first—rather than wrapping implementations, and shows practical consequences: how audience size forces stricter stability, GCC 5.1’s dual std::string ABI and MSVC release/debug ABI problems, and a checklist of ABI vs API compatible changes (eg. ABI incompatible: add new virtual functions or reorder members). Recommends pImpl, minimal surface, fail early and loudly, consistent error-info structures, testable mocks and 11 guiding principles used in reviews.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30Good vs. bad APIs
  3. 6:16Design philosophies
  4. 8:54Audience impact on design
  5. 12:06API design considerations
  6. 20:25API and ABI evolution
  7. 25:32Guiding principles
  8. 45:32Conclusion
~/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.