The Picard Maneuver to AnarchyChess@sopuli.xyz • 5 months agoCoding chessstartrek.websiteimagemessage-square49arrow-up1495arrow-down18
arrow-up1487arrow-down1imageCoding chessstartrek.websiteThe Picard Maneuver to AnarchyChess@sopuli.xyz • 5 months agomessage-square49
minus-squareadONislinkfedilink42•5 months agoLol… stupid junior-devs… in such case you should go with switch-statements instead… much cleaner.
minus-square@Gumus@lemmy.worldlinkfedilink11•5 months agoSwitch-statement (called match) was added to Python 3.10 in late 2021. This is a reasonable, albeit older style of enumerated branching.
minus-square@vithigar@lemmy.cacakelinkfedilink5•5 months agoSwitch statements and differently named but similarly purposed statements have been around since the 60s. Get outta here with this “switch is a newer style because python only just got them” nonsense.
minus-square@cucumber_sandwich@lemmy.worldlinkfedilink7•5 months agoNobody is doubting that. The code in the meme is python…
Lol… stupid junior-devs… in such case you should go with switch-statements instead… much cleaner.
Switch-statement (called match) was added to Python 3.10 in late 2021. This is a reasonable, albeit older style of enumerated branching.
Switch statements and differently named but similarly purposed statements have been around since the 60s. Get outta here with this “switch is a newer style because python only just got them” nonsense.
Nobody is doubting that. The code in the meme is python…