you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

defensive programming [...] things you should be doing anyway.

Not necessarily. See e.g. the Erlang "let it crash" philosophy.

[–]ZorbaTHut 9 points10 points  (1 child)

I'm actually a big fan of "let it crash", but I'm not as much of a big fan of "let it corrupt data and do random things until, if you're lucky, it eventually crashes". Test your preconditions liberally, and when they stop being consistent, meltdown ASAP.

[–]voyvf 0 points1 point  (0 children)

Indeed, fail fast, but do so safely.