this post was submitted on 23 Mar 2025
266 points (98.2% liked)

LinkedinLunatics

6544 readers
3 users here now

A place to post ridiculous posts from linkedIn.com

(Full transparency.. a mod for this sub happens to work there.. but that doesn't influence his moderation or laughter at a lot of posts.)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] socsa@piefed.social 3 points 10 months ago (1 children)

It's just a very common foot gun, especially in legacy code where it is not explicit in the design. Even when you have proper getters and setters, it's way to easy for someone to overload the scope of some object, either intentionally or accidentally and modify it inappropriately.

[–] Boomkop3@reddthat.com 1 points 10 months ago (1 children)

I suppose immutability is a solution, I'm not sure if it's a good idea to radically isolate everything though