The top panel shows Pooh looking unimpressed with a public variable. The middle panel shows Fancy Pooh absolutely delighted with the exact same variable made private but wrapped in getter and setter methods. The bottom panel captures that moment when you join a project and see this pattern everywhere but can't figure out why anyone would add all this boilerplate just to access a simple variable. It's like putting on a tuxedo to walk to your mailbox.
Why Put A Tuxedo On Your Variables
1 year ago
283,662 views
0 shares
java-memes, encapsulation-memes, object-oriented-memes, getters-memes, setters-memes | ProgrammerHumor.io
More Like This
Should I write this in C, Java, or Ruby?
5 years ago
130.2K views
0 shares
Prove This Isn't Accurate
1 year ago
449.4K views
0 shares
Order Factory Factory Is Easy To Maintain
7 months ago
534.7K views
0 shares
Memory Management Is Hard
12 months ago
850.9K views
2 shares
Synology DS425+ Private Cloud Media Server - Stream, Back Up & Share Files (4-Bay Diskless NAS)
Affiliate
Home Lab
Synology
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++