Asserts > Alerts
Justin Searls wrote a great piece on how to reduce the risks of writing dangerous code. It’s succinct, focused on a specific problem, and broadly applicable. His technique relies on assertions, a programming tool that forces failures early when assumptions turn out to be wrong. Assertions don’t just