Assertions of Competence
summary
Asserts are argued to be for declaring invariants and catching things that should never happen not for user-facing error handling, with the concrete point that asserts can disappear in release builds and so must not be relied on for recovery. Practical details include default OS behaviors (Unix core dump Windows dialog), server problems with headless boxes, options to redirect assert output to files, and the recommendation to use unit tests and other checks alongside asserts.
AI-written summary · about
chapters (4)
related talks
42mHow to test static_assert?
57mBetter Code: Exploring Validity in C++
31mDefense Against The Wrong Logic: Proactive Rust Coding
59mTo err is human - error handling in C++26
01h 02mOption(al) is not a failure
31mValidating Rust for industry: Certification meets formal analysis
01h 03mTypesafe & Total; Elegant & Expressive; Compositional & Correct: Exceptions are back!
21mSafety-Critical Development
