~/talk

Writing robust code

Talkat Meeting C++ 2014 · 2014-12-05..12-06· [testing]
links:none on file
slides:none on file

Argues for strong types and compile‑time validation with concrete examples: Ariane 5 $500M failure from a 64→16 bit cast, Mars Climate Orbiter $27.6M lost for unit mismatch. Recommends self‑validating parameters, RAII/unique_ptr, std::reference_wrapper, Boost.Optional/expected, and a bounded integer library (author builds one). Uses tools: turn on all compiler warnings, cppcheck, clang scan‑build, sanitizers and Valgrind. Measures show exceptions cost ~12.8% when not thrown vs ~32.8% for return codes and ~900% when exceptions actually throw.

AI-written summary · about

  1. 0:00Robust code in mission-critical software
  2. 4:14Strong types and type safety
  3. 12:46RAII and resource management
  4. 23:20Runtime error handling strategies
  5. 39:19Static analysis and compiler warnings
  6. 47:13Sanitizers and runtime tools
  7. 1:07:11Simplifying systems to reduce bugs
~/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.