Albbi@piefed.ca to Programmer Humor@programming.devEnglish · 5 months agoObject oriented programming in Python be like:media.piefed.caimagemessage-square42linkfedilinkarrow-up1435arrow-down112
arrow-up1423arrow-down1imageObject oriented programming in Python be like:media.piefed.caAlbbi@piefed.ca to Programmer Humor@programming.devEnglish · 5 months agomessage-square42linkfedilink
minus-squaretheit8514@lemmy.worldlinkfedilinkarrow-up38·5 months agoOnly if you define it. const that = this
minus-squaremesa@piefed.sociallinkfedilinkEnglisharrow-up12·5 months agoI remember that a long time ago. Oh god
minus-squareAurenkin@sh.itjust.workslinkfedilinkarrow-up6·5 months agoI remember this too… what a nightmare.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up25·5 months agoit’s common practice as a workaround to save this when changing contexts, since this may change under you, in callbacks and such
Wait there’s a “that”???
Only if you define it.
const that = thisI remember that a long time ago. Oh god
I remember this too… what a nightmare.
it’s common practice as a workaround to save
thiswhen changing contexts, sincethismay change under you, in callbacks and such