this post was submitted on 13 Dec 2025
370 points (97.9% liked)
Programmer Humor
27836 readers
1093 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
For a time on Reddit (some years ago when I still used it) there was a trend of finding the worst way of implementing
is_even(x: int) -> bool. My contribution to that was a function that ranAckerman(x,x)flipping a Boolean at every iteration, and check if it was true or false at the end.It works btw, I will find the proof later
I would love to see the implementaion.
The implementation is not very exciting, I capture a variable in python. It could have been done more cleanly.
collapsed inline media
The proof is this. But, I could have made mistakes, it was many years ago.
collapsed inline media
Note that in python you'll never be able to run
is_even(5)the stack cannot handle itEdit: daaaamn, that variable is ugly as hell. I would never do things like that now.