News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by mrkeen on Wednesday February 05, 2025 @07:49AM (#42947779)
It's already very unlikely that you can 'recover-and-proceed' in the context of any business app exception (Security violation, customer not found, no such payment, etc.).

So what's left in exception handling is logging and/or rethrowing. And the 'nasty hackish way' of doing it (RuntimeException) already passes a complete stack trace up to the caller.

Re:Software development topics I've changed my mind on after... by wavemode on Wednesday February 05, 2025 @09:34AM (#42948980)
"recover and proceed" generally means "log the error and then continue processing on other data, rather than exiting entirely"

Lots of different kinds of software tends to follow this pattern - web servers, data pipelines, compilers/build tools, etc.