Communicating via Diagnostics: Observations and Tips for Authors
summary
Diagnostics matter: state the violated contract, the actual value and the valid range, and give a clear corrective step; call out precondition failures and postcondition failures when they occur and note invariant breaches; prefer assertions for impossible runtime assumptions but keep asserts pure so checks have no side effects; use plain language, avoid blaming users, and always be helpful with explicit, actionable instructions rather than cryptic codes.
AI-written summary · about
chapters (7)
- 0:00Intro
- 0:27Things go wrong
- 2:22Using asserts
- 3:30Reporting errors
- 4:15A terse baffling remark
- 4:53Guidelines
- 6:05Summary
related talks
20mDebugging: Techniques for Uncertain Times
32mWriting Better Errors
23mDeciphering Alerts – Why is it so hard to make sense
37mFirst Do No Harm
33mHow to Write Useful Technical Texts
46mCrescent Wrenches and Debuggers
40mWe deserve helpful tools
06mHow Automated Tools Can Communicate Effective Strategies for Fixing Bugs
