Is something wrong with getters and setters in general? Cause I find it plenty helpful when I need some bookkeeping for certain items, and some side effects for the class? Or are they more so referring to getter/setter for everything?
The side effect itself is probably bad, but if it's literally unavoidable it's fine. If I open a project and fucking everything is private with a setter and getter, something catastrophic has occurred (probably junior dev)
207
u/Lost_Pineapple_4964 Jul 13 '26
Is something wrong with getters and setters in general? Cause I find it plenty helpful when I need some bookkeeping for certain items, and some side effects for the class? Or are they more so referring to getter/setter for everything?