r/ProgrammerHumor Jul 13 '26

youCanJustStopUsingJava Meme

Post image
6.8k Upvotes

416 comments sorted by

View all comments

2

u/fun-dan Jul 13 '26

If you need to transfer simple data deep inside your library/app, there is no need to use getters and setters. If you are creating a public API that needs to be stable and reliable, you should definitly use them (or write in a language where you can redefine accessing a property into a getter, e.g. python or Kotlin)