hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoobject.setobject(object.getobject().object).to_object()lemmy.worldimagemessage-square10fedilinkarrow-up133arrow-down13
arrow-up130arrow-down1imageobject.setobject(object.getobject().object).to_object()lemmy.worldhairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square10fedilink
minus-squareDarthFrodo@lemmy.worldlinkfedilinkarrow-up15·1 year 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-squarehairinmybellybutt@lemmy.worldOPlinkfedilinkarrow-up13arrow-down2·1 year agotypical OOP progaganda
minus-squarejazz@lemm.eelinkfedilinkarrow-up1·1 year 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