Yeah, no I understand them, I just think they’re mostly pointless. They don’t make reading or maintaining code easier in my opinion. But I think they add a ton of cognitive load making it very easy for developers using them to create overly complex code with bugs. It’s all just personal opinion based on a small sample, have you had a good experience with them?
Cool, I’m glad they worked out for you. I don’t doubt that you’re a smart guy, maybe a bit arrogant for my taste but weren’t we all when we were young?
I’ll share with you my experience of growing a product and overseeing teams of REALLY good devs: 99% of them wouldn’t be able to understand what you’re saying. It is my belief based on my experience, that might be completely wrong, that when devs see complex concepts they don’t understand fully they end up using them incorrectly or even worse misunderstanding the existing code leading to runtime bugs.
I have not had issues with binding, thorough exhaustiveness etc, but I have had to deal with a lot of bugs caused by devs not being able to understand the code, and it’s my personal belief that these will not help at all (they will make it worse).
I've taught all the devs at my company switch expressions and sealed interfaces and there's plenty of business cases where a closed set of things is the right abstraction. I don't think we have a fairly abnormal cross section of engineers.
The goal, you make changes and if it compiles it works, is pretty easy to explain to people. Exhaustive compiler checks are good.
Maybe I’m wrong, I’ve seen people miss understand classes and variables and pass by value semantics over and over again in interviews, so I think they’ll misunderstand and misuse this too. But it’s like my opinion, if it works for you and all devs are using it right maybe I’m just wrong and that’s cool too.
You asked for my reasoning, so I tried to summarise it clearly for a vast topic. If giving a detailed answer reads as arrogance, that’s probably more about tone perception than intent. I was assuming you are a smart guy that didn't require much watering down of terminologies, because I wasn't responding to your "99% of them wouldn't be able to understand what you're saying", which seems to me more likely of an arrogant reply for my taste :). And thanks for assuming I'm young.
View all comments
Show parent comment
2
u/narrow-adventure Feb 17 '26
Yeah, no I understand them, I just think they’re mostly pointless. They don’t make reading or maintaining code easier in my opinion. But I think they add a ton of cognitive load making it very easy for developers using them to create overly complex code with bugs. It’s all just personal opinion based on a small sample, have you had a good experience with them?