@MashedTech to Programmer [email protected] • 3 days agoI redid the meme with what hurts meimagemessage-square42arrow-up1444arrow-down112file-textcross-posted to: [email protected]programmerhumor
arrow-up1432arrow-down1imageI redid the meme with what hurts me@MashedTech to Programmer [email protected] • 3 days agomessage-square42file-textcross-posted to: [email protected]programmerhumor
minus-square@[email protected]linkfedilink3•2 days 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-square@calcopirituslink2•edit-22 days 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.