this post was submitted on 17 Dec 2025
464 points (96.0% liked)
Programmer Humor
27933 readers
617 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Skill issue. Once you learn them they are quite fun.
I'm not saying I don't understand them. I'm saying the syntax is terrible. Compare it to Ruby (or any other modern language) and it's abundantly clear.
python (uses syntax not available in any other top 25 language)
ruby (normal chain syntax with
map)even kotlin is more readable, even though you have to convert to a double and back kotlin
For nested cases it's even more apparent:
python
ruby
kotlin
just from a base level, you have to read the middle of the comprehension first, then the end, then the beginning. It's a completely backwards way to write and read code. unlike other languages that use a 'functional' approach, where it's chained methods or pipes, etc. Even Elixir, which does have list comprehensions, reads and writes in the proper order:
elixir
The concept of a list comprehenshion is sinple but syntax is awful, as if Yoda was writing a for loop. "x for x in y it is, hmm yes".