Re:Cloudflare outage on November 18, 2025 post mortem
by branko_d on Wednesday November 19, 2025 @09:56AM
(#45980327)
Sure, but the same is true of any error handling strategy.
When you work with exceptions, the key is to assume that every line can throw unless proven otherwise, which in practice means almost all lines of code can throw. Once you adopt that mental model, things get easier.
Re:Cloudflare outage on November 18, 2025 post mortem
by frumplestlatz on Wednesday November 19, 2025 @10:10AM
(#45980502)
Explicit error handling strategies allow you to not worry about all the code paths that explicitly cannot throw -- which is a lot of them. It makes life a lot easier in the non-throwing case, and doesn't complicate life any more in the throwing case as compared to exception-based error handling.
It also makes errors part of the API contract, which is where they belong, because they are.
Re:Cloudflare outage on November 18, 2025 post mortem
by branko_d on Thursday November 20, 2025 @01:55AM
(#45989737)
I would respectfully disagree with most of what you said. I guess individual perspective depends a lot on the kinds of code you work on.
The point about being explicitly part of the API stands, though.
When everyone uses runtime exceptions and doesn’t count for exception handling in every possible code path, that’s exactly what it means.