Menu
Legacy code: Code written by anyone else.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Reflection Memes
Posts tagged with Reflection
Private In Theory, Public In Practice
Java
Programming
Debugging
Security
1 year ago
389.8K views
0 shares
Java: "We use private keywords for encapsulation and data hiding." Developers: "Hold my reflection API." The left side shows the ultimate Java encapsulation heist - using reflection to forcibly access a private field. It's like telling someone their house is secure while showing them exactly how to pick the lock. Sure, Java tries to protect your data with private keywords, but reflection just walks in through the bathroom window with a smug grin. After 15 years of coding, I've seen this "elegant solution" in production more times than I care to admit. Security through obscurity at its finest!
Today's picks
EMEET C960 4K Webcam for PC, 4K UHD CMOS Sensor, PDAF Auto Focus, Dual Omnidirectional Mics, Auto Light Correction, 73° FOV, Plug&Play Webcam w/Privacy Cover, Works w/Zoom/Teams/Skype/Google Meet
Affiliate
$47.99
NordVPN
Sponsored
VPN
Does this happen to any of you guys?
Programming
87.7K views
2 years ago