The Picard Maneuver@startrek.website to AnarchyChess@sopuli.xyz · 2 years agoCoding chessstartrek.websiteimagemessage-square49linkfedilinkarrow-up1495arrow-down16
arrow-up1489arrow-down1imageCoding chessstartrek.websiteThe Picard Maneuver@startrek.website to AnarchyChess@sopuli.xyz · 2 years agomessage-square49linkfedilink
minus-squareadONislinkfedilinkarrow-up43·2 years agoLol… stupid junior-devs… in such case you should go with switch-statements instead… much cleaner.
minus-squareGumuslinkfedilinkarrow-up12arrow-down1·2 years agoSwitch-statement (called match) was added to Python 3.10 in late 2021. This is a reasonable, albeit older style of enumerated branching.
minus-squarevithigar@lemmy.calinkfedilinkarrow-up9arrow-down4·2 years 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-squarecucumber_sandwichlinkfedilinkarrow-up8·2 years 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…