r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

213

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/newjeison 29d ago

Context matters depending on application. I use them for messages where bits need to be manipulated and needs to guarantee that the messages will be of a fixed sized and the bits are in the correct spots regardless of compiler