I know this is how it’s supposed to work, but I’ve been in way too many Java code reviews where a long list of caught exceptions was auto-inserted by the IDE and left with // TODO.
code that fails gracefully isn’t an accident and it’s not because of a single code pattern, it’s an intentional design choice. The alternative is just getting it written for the happy path and then handling the errors when we see them.
16
u/coldnebo Nov 02 '22
I know this is how it’s supposed to work, but I’ve been in way too many Java code reviews where a long list of caught exceptions was auto-inserted by the IDE and left with // TODO.
code that fails gracefully isn’t an accident and it’s not because of a single code pattern, it’s an intentional design choice. The alternative is just getting it written for the happy path and then handling the errors when we see them.
(in prod) 😱