4 ms·
I participate in a couple of Java communities and checked exceptions are considered a huge anti-pattern in both. Please don't mistake preference for objective r
by neonsunset 2y ago
I participate in a couple of Java communities and checked exceptions are considered a huge anti-pattern in both. Please don't mistake preference for objective reality.
- breadwinner 2y ago> huge anti-pattern in both That's not a valid argument. Lots of people believed the earth is flat but we now know that's not true. Did you read the article? Explain why it is wrong.
- neonsunset 2y agoSibling comments did a better job than I could've done at explaining why the checked exceptions and business logic exceptions are bad.
- breadwinner 2y ago> why checked exceptions and business logic exceptions are bad It didn't, and they aren't bad.
- vips7L 2y agoAnd yet using checked Results seems to be the pattern that most programming communities are heralding. Java has just made checked errors awkward to deal with.
- breadwinner 2y agoThis is what happens when a wrong narrative takes root and you don't nip it in the bud. Many programming communities have embraced the wrong narrative, and if you approach those communities and challenge them, all they can respond with is, "everyone else says so, so you must be wrong".