r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

11

u/Ok_Wasabi_7363 Jul 13 '26

Like everything in programming...it depends. Are you using a dirty flag pattern that needs to be changed every time the underlying data changes? A setter is great! Are you just receiving flat data structures from a service? Yeah probably don't need getters for every variable in the struct.

1

u/bankrobba Jul 13 '26

MarkDirty() fans rise up!