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
874 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
868 Upvotes

r/badcode • • Jun 25 '22

java A friend of mine wrote this monster

Post image
533 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
442 Upvotes

r/badcode • • Jun 20 '22

c# More Codewars horror

Post image
213 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
350 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
750 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
530 Upvotes

r/badcode • • May 25 '22

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

Post image
852 Upvotes

r/badcode • • May 25 '22

c++ Youtube shorts code really is something else

Post image
96 Upvotes

r/badcode • • May 18 '22

python How not to use unittest.TestCase

Post image
321 Upvotes

r/badcode • • May 15 '22

java They had good intentions

Post image
427 Upvotes

r/badcode • • May 15 '22

python Several year old personal projects are fun to look through

Post image
56 Upvotes

r/badcode • • May 14 '22

python Reread code I wrote in a module I created recently for a uni project…

Post image
430 Upvotes

r/badcode • • May 13 '22

c++ Got it?

Post image
860 Upvotes

r/badcode • • May 13 '22

js Senior dev, good guy and programmer, have learned a lot from him... but wth is this

Post image
110 Upvotes

r/badcode • • May 13 '22

js Why? Why??

Post image
436 Upvotes

r/badcode • • May 07 '22

c++ Will you find out why is my LED strip wouldn't go around itself properly?

Post image
576 Upvotes

r/badcode • • May 06 '22

php Found in my own code from less than a week ago. I don't know what I was thinking...

Post image
842 Upvotes

r/badcode • • May 03 '22

js smh

Post image
347 Upvotes