The Picard Maneuver to [email protected] • 1 year agoCoding chessstartrek.websiteimagemessage-square48fedilinkarrow-up1496arrow-down18
arrow-up1488arrow-down1imageCoding chessstartrek.websiteThe Picard Maneuver to [email protected] • 1 year agomessage-square48fedilink
minus-squareadONislinkfedilink43•1 year agoLol… stupid junior-devs… in such case you should go with switch-statements instead… much cleaner.
minus-square@[email protected]linkfedilink11•1 year 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@[email protected]linkfedilink4•1 year 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@[email protected]linkfedilink8•1 year 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…