~/lightning

Lightning Talk: Effective APIs in Practice in C++

Lightningat CppCon 2022 · 2022-09-11..09-16· [frontend-architecture]
slides:none on file

Five quick, actionable claims: five concrete tips that change APIs rather than restate principles. Better names reduce ambiguity, strong types force callers to construct the right units so wrong calls fail at compile time, and replacing swappable booleans with a direction/configuration class makes intent explicit. Move multi‑step setup into constructors to avoid surprising side effects, and follow a clang‑tidy rule to detect risky parameter patterns so the examples actually prevent bugs rather than just documenting them.

AI-written summary · about

  1. 0:00Introduction
  2. 0:34Naming
  3. 1:37Strong types
  4. 2:34Avoid easy swaps
~/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.