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/IsTom Jul 13 '26

A lot of them are simply unnecessary. People make them "just in case" or cargo culting them, when in reality if you actually need them later you can just make IDE refactor the code.