Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's such a bad take after reading the article. If you're going to write a system that preallocates and is based on hard assumptions about max size - the panic/unwrap approach is reasonable.

The config bug reaching prod without this being caught and pinpointed immediately is the strange part.



It's reasonable when testing protocols exercise the panic scenario. This is the problem with punting on error recovery. Nobody checks faults that propagate across domains of responsibility.


Exactly. The newbie mistake in SQL is also way worse than this. But the whole design is also bad. Clearly implementing things at the wrong place.

And, it took like over an hour between the problem started til my sites went down. That is just crazy.


I agree there's no way to soft-error this, though "truncate and raise an alert" is arguably the better pattern.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: