this post was submitted on 08 Jun 2025
470 points (97.4% liked)

Programmer Humor

36257 readers
1096 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] bobo1900@sopuli.xyz 71 points 20 hours ago* (last edited 3 hours ago) (31 children)

Partially unrelated to the meme, but I find it almost malicious how some python keywords are named differently from the nearly universal counterpart of other languagues.

This/self, continue/pass, catch/except and they couldn't find a different word for switch so they just didn't implement it.

It's as if the original designers purposefully wanted to be different for the sake of it.

[–] scrubbles@poptalk.scrubbles.tech 4 points 19 hours ago (14 children)

Iv come to loathe the "pythonic way" because of this. They claim they wanted to make programming easier, but they sure went out of their way to not follow conventions and make it difficult to relearn. For example, for me not having lambdas makes python even more complex to work with. List operations are incredibly easy with map and filter, but they decided lambdas weren't "pythonic" and so we have these big cumbersome things instead with wildly different syntax.

[–] limdaepl@feddit.org 1 points 15 hours ago

If the conventions suck you have to break them. How else can you improve things?

map and filter are almost always inferior to generators and comprehension expressions in terms of readability. If you prefer the former, it’s just because you got used to it, not because it’s better.

load more comments (13 replies)
load more comments (29 replies)