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
11 months ago
215,832 views
0 shares
java-memes, encapsulation-memes, object-oriented-memes, getters-memes, setters-memes | ProgrammerHumor.io
More Like This
An introduction to the Array.reduce method
4 years ago
81.4K views
0 shares
A single line
4 years ago
86.1K views
0 shares
This Is Very Strong Indeed
7 months ago
376.4K views
0 shares
When You Ask For Input In Different Languages
10 months ago
241.9K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp