~/talk

The Most Important API Design Guideline - No, It's Not That One

Talkat C++Now 2024 · 2024-04-29..05-03· [api-design, c-and-cpp]
links:none on file
slides:none on file

Argues that the top API design rule is testability over ease-of-use or raw performance, supported by concrete checks: examine IG, the Standard Library and Boost guidelines; prefer strong types, compile-time checks and the compiler as the first line of defense; use property-based and fuzz-style tests and commit generated code so diffs show generator regressions. Shows a production disaster where a reused enum/bit plus a missed deployment on one of eight servers and a blind rollback causes repeated child orders and a ~$460M loss, urging relentless decoupling and message-passing modularity.

AI-written summary · about

  1. 0:00Introduction to Design
  2. 2:58Library Design Principles
  3. 7:28Importance of Testability
  4. 12:12Continuous Performance Testing
  5. 18:03Tools for Testability
  6. 22:19Donald Knuth on Testing
  7. 27:33Extreme Programming Critique
  8. 34:04Torture Testing Techniques
  9. 39:15Compiler as a Testing Tool
  10. 44:24Case Study: Tomahawk Missile
  11. 48:06The Night Capital Failure
  12. 1:02:07Avoiding Team Effort Bugs
  13. 1:07:28Reviewing Generated Code
  14. 1:14:03Industry Best Practices
  15. 1:16:55True Object-Oriented Design
~/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.