this post was submitted on 16 Sep 2024
436 points (97.4% liked)

Programmer Humor

19187 readers
1536 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] funkless_eck@sh.itjust.works 3 points 2 days ago (1 children)

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

[โ€“] calcopiritus@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

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.