Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever
by jbverschoor on Thursday July 13, 2023 @05:05PM
(#36715966)
Then that person should get a Java 101 class. Or is this the current “staff software engineer” level of skills?
[ Parent
| on HN ]
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever
by bedobi on Thursday July 13, 2023 @05:14PM
(#36716081)
This is the most common reply I see whenever anyone proposes a safer, better way of coding, and it's not a good one. "Just get better" like oh ok except that in the real world people are gonna people and even the best programmers in the world make mistakes and do dumb, lazy shit. Our tools should be designed such that the safest, most correct way to do anything has the path of least the resistance. Not happily allow you to ignore exceptions, or catch less or more exceptions than required. Functional error handling corrects this, exceptions do not. Anyway, it's clear we're not going to agree, and you win, since so far the industry is still stubbornly clinging to exceptions, despite them being a failed feature in every language they're in.
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever
by jbverschoor on Friday July 14, 2023 @03:04AM
(#36720412)
It’s not even lazy, your IDE will not do this for you by default.
It’s got nothing to do with getting better. It IS basic Java exception handling. Any proper course or tutorial will tell you to catch specific exceptions
Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever
by bedobi on Friday July 14, 2023 @01:47PM
(#36727423)
> Any proper course or tutorial will tell you to catch specific exceptions
any real world library or application will catch Exception e, catch checked exceptions and turn them into unchecked ones etc etc