cm0002@lemmy.world to memes@lemmy.world · 3 days agoBased on a recent text exchange with my [OOP] wifelemmy.caimagemessage-square12fedilinkarrow-up1209
arrow-up1209imageBased on a recent text exchange with my [OOP] wifelemmy.cacm0002@lemmy.world to memes@lemmy.world · 3 days agomessage-square12fedilink
minus-squareShuilishu@lemmynsfw.comlinkfedilinkEnglisharrow-up38·3 days agoObject Oriented Programming. She’s a factory class.
minus-squareZeroGravitas@lemm.eelinkfedilinkarrow-up8·2 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-up2·2 days agoSo… I can have an abstract wife factory ? Or would it just be schizophrenia
minus-squareCluckN@lemmy.worldlinkfedilinkarrow-up6·2 days agoUnlike OP’s mom who is a global variable.
minus-squareZeroGravitas@lemm.eelinkfedilinkarrow-up1·2 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 😂