3 ms·
Bah. Use cases are specific yet talked about as if they're universal. Let's look at error. If you're running a web server, or something like a web server, then
by azinman2 11y ago
Bah. Use cases are specific yet talked about as if they're universal.
Let's look at error. If you're running a web server, or something like a web server, then when a request errors you don't want it to blow up the whole server. You just want to log that error. Yet you may not care about the many many other normal requests happening at the info level (and debug would be even more info underneath). Thus now error is actually useful both in terms of monitoring but also separating out from other requests that went through just fine.
People say exceptions should blow up the world -- that's great when you're debugging, but users don't typically want to keep reusing an app that crashes. There are more graceful ways to degrade.