2 ms·
Getters/setters are just as easily associated with hidden behavior that makes systems worse. The only sibling comment of yours that bothered to even show code
by hombre_fatal 2y ago
Getters/setters are just as easily associated with hidden behavior that makes systems worse.
The only sibling comment of yours that bothered to even show code just demonstrated how they turned user.lastPost into a method that makes a hidden DB query.
Yet the benefits are supposedly so nuanced and hard to get across that merely asking about it gets a "you'll understand when you get some real experience ;)" comment from you.
- keybored 2y agoHaha as someone who doesn’t understand getters/setters as a pattern I’m bewildered by this subthread.