this post was submitted on 13 Dec 2025
629 points (97.6% liked)
Programmer Humor
27913 readers
1864 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
How about
x=x-x
x++
x++
x++
x++
x++
x++
x++
x++
x++
x++
This is actually a valid brainf*ck program, but it results in 19, not 10.
How so? It’s only 10 increments
Because the only brainfuck instructions in your comment where a
-which decrements and 20+, each of which increments.Mine echos the first two characters from stdin, because of the commas and dots.
it's been a long time since i looked at brainfuck, but i suspect that '+' denotes an increment, and '-' denotes a decrement, so we've got one decrement and 20 increments.