Someone really said "what if I manually hardcoded every single possible outcome in rock-paper-scissors instead of using, you know, basic logic?" Six separate if-statements checking every combination like they're getting paid per line of code. Rock beats scissors? Check. Rock ties with rock? Check. Rock loses to paper? Check. Now repeat for scissors...
The beautiful part is that young programmers genuinely think more code = better code. Why write a simple win/loss comparison function when you can create a 40-line monstrosity that does the exact same thing? It's like using a sledgehammer to crack a walnut, except the sledgehammer is made of spaghetti code and the walnut is basic game logic.
Fun fact: This could be reduced to like 5 lines with a dictionary/hashmap or even simpler with modulo arithmetic. But where's the fun in efficiency when you can manually type out every permutation like a human truth table?
13 Year Old Me Really Liked Inefficient Code
6 hours ago
648,856 views
0 shares
python-memes, beginner-mistakes-memes, inefficient-code-memes, rock-paper-scissors-memes, code-smell-memes | ProgrammerHumor.io
More Like This
Help I Am Out Of Scope
1 month ago
92.0M views
0 shares
I recently saw this Job posting and I cant stop laughing
4 years ago
354.1K views
0 shares
UGREEN NAS DXP2800 2-Bay, Ideal for Content Creators and Enthusiasts
Affiliate
Home Lab
UGREEN
Don't lie to me.
3 years ago
438.2K views
0 shares
- ; -
8 months ago
442.0K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++