13 Year Old Me Really Liked Inefficient Code

13 Year Old Me Really Liked Inefficient Code
python-memes, beginner-mistakes-memes, inefficient-code-memes, rock-paper-scissors-memes, code-smell-memes | ProgrammerHumor.io

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?

More Like This