3 ms·
A bad programmer can write bad code no matter the language. Java lets you write good code if you're a good programmer. C# on the other hand makes you write bad
by breadwinner 2y ago
A bad programmer can write bad code no matter the language. Java lets you write good code if you're a good programmer. C# on the other hand makes you write bad code even if you're a good programmer. Why? Because you have no idea what exceptions are possible, and whether the handlers you have are even needed anymore.
- neonsunset 2y agoI 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".