4 ms·
Fair point on succeed quietly. ESR's a somewhat less reliable narrator on many topics these days, but his TAOUP remains useful, and indeed suggests "Rule of Re
by dredmorbius 3y ago
Fair point on succeed quietly.
ESR's a somewhat less reliable narrator on many topics these days, but his TAOUP remains useful, and indeed suggests "Rule of Repair: Repair what you can — but when you must fail, fail noisily and as soon as possible."
<https://www.catb.org/~esr/writings/taoup/html/ch01s06.html https://www.catb.org/~esr/writings/taoup/html/ch01s06.html>
- kazinator 3y agoMeta-rule of Postel's Law: Postel's Law does not count among "repair what you can". Do not try to repair Postel's Law as ESR is doing here; it's broken beyond repair and can only be replaced. - Rarely repair a bad input; it is optional at your discretion. Just fail. - If you repair a bad input, do it only in order to try to diagnose more of that input; more things could be wrong, or the first failure encountered could even have a root cause in those other things. - Remember to fail if you repaired the bad input, even if there are no more errors after the repair.