MashedTech@lemmy.world to Programmer Humor@programming.dev · 2 months agoI redid the meme with what hurts melemmy.worldimagemessage-square25fedilinkarrow-up10arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up10arrow-down1imageI redid the meme with what hurts melemmy.worldMashedTech@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square25fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squarefunkless_eck@sh.itjust.workslinkfedilinkarrow-up0·2 months agoas a complete layman and hobbyist i also personally think that “more pythonic” coding can sometimes be more confusing. I dont think any beginner reads “j for j for i in k” and instantly gets it. maybe unpopular opinion idk
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up0·edit-22 months agoAnything that’s not an integer or a range doesn’t belong inside []. Much more readable to use zip, map, filter, etc. And more powerful. EDIT: that was meant for indexing lists. Strings inside [] for indexing ducts are fine.
as a complete layman and hobbyist i also personally think that “more pythonic” coding can sometimes be more confusing.
I dont think any beginner reads “j for j for i in k” and instantly gets it.
maybe unpopular opinion idk
Anything that’s not an integer or a range doesn’t belong inside
[]
. Much more readable to use zip, map, filter, etc. And more powerful.EDIT: that was meant for indexing lists. Strings inside
[]
for indexing ducts are fine.