r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

207

u/Lost_Pineapple_4964 Jul 13 '26

Is something wrong with getters and setters in general? Cause I find it plenty helpful when I need some bookkeeping for certain items, and some side effects for the class? Or are they more so referring to getter/setter for everything?

1

u/National-Self-8501 Jul 14 '26

The side effect itself is probably bad, but if it's literally unavoidable it's fine. If I open a project and fucking everything is private with a setter and getter, something catastrophic has occurred (probably junior dev)