MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 26 days agoLabels go brrrrlemm.eeimagemessage-square14fedilinkarrow-up12arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up12arrow-down1imageLabels go brrrrlemm.eeMasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 26 days agomessage-square14fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareTelorand@reddthat.comlinkfedilinkarrow-up0·26 days agoFr, though, duck typing in Python is one of my biggest annoyances.
minus-squarePotatoesFall@discuss.tchncs.delinkfedilinkarrow-up1·26 days agoI love duck typing! dynamic typing is my issue…
minus-squareEthan@programming.devlinkfedilinkEnglisharrow-up1·26 days ago“Assume it’s a map and treat like a map and then catch the type error if it’s not.” Paraphrased from actual advice by Guido on how you should write Python. Python isn’t a bad language but the philosophy that comes along with it is so fucked.
minus-squareZephyrXero@lemmy.worldlinkfedilinkEnglisharrow-up0·25 days agoThis is just preferring runtime validation instead of compile time validation.
minus-squareEthan@programming.devlinkfedilinkEnglisharrow-up1·25 days agoAnd relying on runtime validation is a horrific way to write production code
Fr, though, duck typing in Python is one of my biggest annoyances.
I love duck typing! dynamic typing is my issue…
“Assume it’s a map and treat like a map and then catch the type error if it’s not.” Paraphrased from actual advice by Guido on how you should write Python. Python isn’t a bad language but the philosophy that comes along with it is so fucked.
This is just preferring runtime validation instead of compile time validation.
And relying on runtime validation is a horrific way to write production code