cm0002@lemmy.world to memes@lemmy.world · 4 days agoBased on a recent text exchange with my [OOP] wifelemmy.caimagemessage-square12fedilinkarrow-up1209arrow-down16
arrow-up1203arrow-down1imageBased on a recent text exchange with my [OOP] wifelemmy.cacm0002@lemmy.world to memes@lemmy.world · 4 days agomessage-square12fedilink
minus-squareShuilishu@lemmynsfw.comlinkfedilinkEnglisharrow-up39·4 days agoObject Oriented Programming. She’s a factory class.
minus-squareZeroGravitas@lemm.eelinkfedilinkarrow-up8·4 days agoThat’s… surprisingly accurate. Every time he sees her, that’s a new instance of the abstract Wife in his head, which is different from the previous instance in small, but interesting ways. For instance, current_wife.HasFood() returns true.
minus-square_____@lemm.eelinkfedilinkEnglisharrow-up2arrow-down1·4 days agoSo… I can have an abstract wife factory ? Or would it just be schizophrenia
minus-squareCluckN@lemmy.worldlinkfedilinkarrow-up6·4 days agoUnlike OP’s mom who is a global variable.
minus-squareZeroGravitas@lemm.eelinkfedilinkarrow-up1·3 days agoNow I want an “Yo momma is a singleton” t-shirt 😂
Object Oriented Programming. She’s a factory class.
That’s… surprisingly accurate. Every time he sees her, that’s a new instance of the abstract Wife in his head, which is different from the previous instance in small, but interesting ways.
For instance,
current_wife.HasFood()
returnstrue
.So… I can have an abstract wife factory ? Or would it just be schizophrenia
Unlike OP’s mom who is a global variable.
Now I want an “Yo momma is a singleton” t-shirt 😂