Amon@lemmy.world to Ask Lemmy@lemmy.world · 15 days agoI'm trying to teach the significance of abstraction; anyone have Python spaghetti code examples?message-squaremessage-square7fedilinkarrow-up18arrow-down10
arrow-up18arrow-down1message-squareI'm trying to teach the significance of abstraction; anyone have Python spaghetti code examples?Amon@lemmy.world to Ask Lemmy@lemmy.world · 15 days agomessage-square7fedilink
minus-squareAmon@lemmy.worldOPlinkfedilinkarrow-up2·9 days agommm it’s not that bad actually i can kind of get what is going on in there
minus-squaresem@lemmy.blahaj.zonelinkfedilinkarrow-up2·9 days agoThanks – I’ve never been able to wrap my head around object oriented programming – it has always made more sense to me to treat the program like a script, but I think I need to learn to understand the oop paradigm if I want to make progress.
minus-squareAmon@lemmy.worldOPlinkfedilinkarrow-up1·9 days agoParadigms only really work when your code has to do enough things. It will come to you eventually
mmm it’s not that bad actually i can kind of get what is going on in there
Thanks – I’ve never been able to wrap my head around object oriented programming – it has always made more sense to me to treat the program like a script, but I think I need to learn to understand the oop paradigm if I want to make progress.
Paradigms only really work when your code has to do enough things. It will come to you eventually