hairinmybellybutt to Programmer Humor@lemmy.ml · 2 years agoobject.setobject(object.getobject().object).to_object()imagemessage-square11linkfedilinkarrow-up169arrow-down18
arrow-up161arrow-down1imageobject.setobject(object.getobject().object).to_object()hairinmybellybutt to Programmer Humor@lemmy.ml · 2 years agomessage-square11linkfedilink
minus-squareDarthFrodolinkfedilinkarrow-up21·2 years agoThe neat thing is, you can add stuff like range checks and logging for getters and setters without changing every call. Separation of concerns is also vital in larger projects.
minus-squarejazz@lemm.eelinkfedilinkarrow-up6·2 years agoalso const correctness in languages that support that concept
The neat thing is, you can add stuff like range checks and logging for getters and setters without changing every call. Separation of concerns is also vital in larger projects.
typical OOP progaganda
also const correctness in languages that support that concept