~/talk

Typical C++, but Why?

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
slides:none on file

Shows concrete refactors that stop real bugs: replace plain strings with a sanitized_string type (private data, throwing explicit ctor and explicit conversion to avoid using unsanitized input), swap boolean flag lists for distinct enum class flag types, consolidate pointer+length into a buffer_view over std::span to prevent offset overflow, and require values with a must_init<T> wrapper to force initialization. Examples compile-time fail instead of producing runtime errors.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38Jigsaw puzzle analogy
  3. 1:20Strength of strong typing
  4. 2:31Goal of the presentation
  5. 3:32Data sanitization example
  6. 6:28Implicit conversions
  7. 10:17Enum class for flags
  8. 14:08Avoiding default dangers
  9. 17:30Structuring arguments
  10. 19:01Buffer views for memory
  11. 25:41Named initialization
  12. 30:14Forcing initialization
  13. 33:31Configuration structures
  14. 36:24Type safety for IDs
  15. 44:28Conclusion
  16. 49:05Recommendations
~/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.