Someone really looked at Rock Paper Scissors and thought "yeah, I can solve this with string concatenation." The genius move here is adding the computer's choice (1, 2, or 3) to the player's choice (also 1, 2, or 3) and checking if the result equals specific strings like "11", "22", "33" for draws, or "12" for rock vs paper. The problem? They're concatenating numbers as strings instead of doing actual math. So when computer picks 1 and player picks 2, you get "12" (the string), not 3 (the number). It's technically functional but hilariously cursed. It's like using a sledgehammer to crack an egg - sure it works, but everyone watching is uncomfortable. The real kicker is they're treating what should be simple arithmetic logic (winner = (player - computer + 3) % 3) like some kind of bizarre string matching puzzle. Props for creativity, but my code reviewer would have questions.
Rock Paper Scissors
22 days ago
150,190,920 views
2 shares
javascript-memes, bad-code-memes, rock-paper-scissors-memes, string-concatenation-memes, code-smell-memes | ProgrammerHumor.io
More Like This
I'm way too dumb sometimes
4 years ago
275.9K views
0 shares
If You Have No Job You Must Suffer
9 months ago
383.1K views
0 shares
Society If HTML Could Be Seamlessly Used With Any Language
1 year ago
299.1K views
0 shares
The Thrill Of Using Something For A Project It Should Never Be Used For
1 year ago
402.1K views
0 shares
Such a cursed image
5 years ago
244.3K views
0 shares
Average Tech Job Interview
1 year ago
513.4K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++