2026-10-25 00:31 UTC
Getters and setters are ridiculous
Replies (5)
-
@eestileib@sh.itjust.works 2026-10-25 00:40
YES
-
@UnfortunateShort@lemmy.world 2026-10-25 00:41
That’s why people invented properties / auto generated getter/setter - in at least 95% of cases they are just busywork.
-
@gastroglizzy@piefed.social 2026-10-25 01:40
I don’t like working with them any more than you do, but they’re necessary to enforce read/write-level security. Without them, there’d be no differentiation between reading a variable and writing variable from an external class, which kinda defeats the point. From a development standpoint, they’re an extra hurdle to clear. From a security standpoint, they’re a necessary evil.
-
@TootSweet@lemmy.world 2026-10-25 02:46
Oh my god. I’m not the only one who thinks this!
-
@alstocras@lemmy.dbzer0.com 2026-11-05 10:03
the horrors of object oriented programming