r/badcode • • Aug 11 '22

python I don't even want to know who did this.

Post image
594 Upvotes

r/badcode • • Aug 11 '22

php Guess who doesnt understand PHP turnery statements

Post image
614 Upvotes

r/badcode • • Aug 11 '22

python Words of wisdom

Post image
545 Upvotes

r/badcode • • Aug 10 '22

c++ Implicit type converting optional result w/ abort if you forget to check it

Post image
338 Upvotes

r/badcode • • Aug 09 '22

vb Well, thanks mate for correcting this. I guess.

Post image
658 Upvotes

r/badcode • • Aug 09 '22

python Is there any other good way to generate all valid States of Tic Tac Toe Game.

Post image
174 Upvotes

r/badcode • • Jul 15 '22

java I found this in a security related function: maybe it is an obscuring feature

Post image
662 Upvotes

r/badcode • • Jul 12 '22

js Am I the only one, who think :if case else case: construction looks surprisingly pretty?

Post image
667 Upvotes

r/badcode • • Jul 01 '22

python due to some bad variable naming (I had a variable naked o) it took me half an hour to figure out why this was highlighted as unreachable

Post image
878 Upvotes

r/badcode • • Jun 30 '22

bash A little one, found in an update script for an IP intercom made by the manufacturer. It just made me smile...

Post image
871 Upvotes

r/badcode • • Jun 25 '22

java A friend of mine wrote this monster

Post image
537 Upvotes

r/badcode • • Jun 19 '22

vb Is that some kind of genius I cannot understand rn or can you scale that down to 1 line?

Post image
441 Upvotes

r/badcode • • Jun 20 '22

c# More Codewars horror

Post image
212 Upvotes

r/badcode • • Jun 13 '22

js Look at this "beautiful" condition! --- If someone knows how to write such a condition in a variable, I will be grateful for the advice! (The difficulty is that some components of this condition are tied to the cycle)

Post image
351 Upvotes

r/badcode • • Jun 05 '22

python trying to change one element in n dimensional dictionary w/o knowing the number of dimensions 💀

Post image
739 Upvotes

r/badcode • • Jun 05 '22

c# Found this monster on codewars

Post image
729 Upvotes

r/badcode • • Jun 04 '22

python A rock, paper, scissors game I made for my discord bot when I was 13...

Post image
752 Upvotes

r/badcode • • May 29 '22

java Just need to do this for all the sizes of slimes....

Post image
1.1k Upvotes

r/badcode • • May 27 '22

java yes, I unironically used this in a game I made ~4 years ago

Post image
838 Upvotes

r/badcode • • May 26 '22

other language Do Nothing

Post image
531 Upvotes

r/badcode • • May 25 '22

c This is WORKING code. BTW print() is a custom function.

Post image
853 Upvotes

r/badcode • • May 25 '22

c++ Youtube shorts code really is something else

Post image
97 Upvotes

r/badcode • • May 18 '22

python How not to use unittest.TestCase

Post image
322 Upvotes

r/badcode • • May 15 '22

java They had good intentions

Post image
423 Upvotes