this post was submitted on 26 Aug 2026
708 points (99.3% liked)

Programmer Humor

33003 readers
1100 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] rockSlayer@lemmy.world 15 points 2 days ago* (last edited 2 days ago) (1 children)

If you like if statements, you'll love the python case statements for pattern matching

[–] partial_accumen@lemmy.world 37 points 2 days ago* (last edited 2 days ago) (1 children)

Ohhh nice! I could see replacing dozens of nested if statements with dozens of nested case statements!

[–] MonkderVierte@lemmy.zip 3 points 1 day ago (1 children)

Also don't nest case statements. Please.

[–] partial_accumen@lemmy.world 2 points 1 day ago (1 children)

I remember one of the hardest transitions for me from scripting in Ruby to Python was the whitespace indent was larger by default in Python. With Python, I ran out of monitor width and would have to be constantly scrolling right and left when visually parsing the code because the nested loops were so deep.

[–] MonkderVierte@lemmy.zip 1 points 1 day ago

Yes, but also, it makes for twistsd code.