News for hackers. Stuff that matters.
Re:Do not program defensively by thibaut_barrere on Tuesday February 15, 2011 @02:49PM (#2222910)
Most of the time I would precisely give the opposite advice. That's especially true if I had to deal with a large and/or legacy codebase.

It only really works if applied equally at all levels of the codebase.

Re:Do not program defensively by Semiapies on Tuesday February 15, 2011 @03:02PM (#2222993)
That's a good practice in many languages and systems.

It's a bit different here, as the standard way to handle things in Erlang (as I understand it) is for the function involved to crash, an error log to be made, and then the program to restart, usually seamlessly.

Linking this rule without discussion, context, or explanation is basically useless.

Re:Do not program defensively by thibaut_barrere on Tuesday February 15, 2011 @03:10PM (#2223037)
Thanks for giving more context actually - this totally makes sense.