Follow

"assert everywhere" → strong agree

Better to fail hard when something's wrong/missing/unimplemented rather than fail in subtle, hard-to-debug ways.

· · Web · 2 · 4 · 6
@emersion IMO, this is true depending on the goal. You could also aim for someone else taking the blame, by hiding the crime :)

Joke aside, sometimes I wonder if developers catch and hide exception is so that they don't have to answer for their part of the program failing to do something.
Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!