Amon@lemmy.world to Ask Lemmy@lemmy.world · 2 months agoI'm trying to teach the significance of abstraction; anyone have Python spaghetti code examples?message-squaremessage-square7linkfedilinkarrow-up18
arrow-up18message-squareI'm trying to teach the significance of abstraction; anyone have Python spaghetti code examples?Amon@lemmy.world to Ask Lemmy@lemmy.world · 2 months agomessage-square7linkfedilink
minus-squaresemlinkfedilinkarrow-up2·2 months agoI’m pretty sure this code doesn’t have any paradigms. Let me know. https://github.com/ph818/lastfmplaylistfinder
minus-squareAmon@lemmy.worldOPlinkfedilinkarrow-up2·2 months agommm it’s not that bad actually i can kind of get what is going on in there
minus-squaresemlinkfedilinkarrow-up2·2 months 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·2 months agoParadigms only really work when your code has to do enough things. It will come to you eventually
I’m pretty sure this code doesn’t have any paradigms. Let me know. https://github.com/ph818/lastfmplaylistfinder
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