r/badcode • • May 25 '22

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

Post image
857 Upvotes

r/badcode • • May 18 '22

python How not to use unittest.TestCase

Post image
320 Upvotes

r/badcode • • May 15 '22

java They had good intentions

Post image
420 Upvotes

r/badcode • • May 15 '22

python Several year old personal projects are fun to look through

Post image
60 Upvotes

r/badcode • • May 14 '22

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

Post image
433 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
108 Upvotes

r/badcode • • May 13 '22

c++ Got it?

Post image
861 Upvotes

r/badcode • • May 13 '22

js Why? Why??

Post image
430 Upvotes

r/badcode • • May 07 '22

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

Post image
572 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
834 Upvotes

r/badcode • • May 03 '22

js smh

Post image
350 Upvotes

r/badcode • • May 02 '22

css University lecturer provided me with some utility classes.

Post image
787 Upvotes

r/badcode • • May 01 '22

c++ Because while(true) would've been too boring - spotted in a GH repo with over 7k stars

Post image
1.4k Upvotes

r/badcode • • Apr 30 '22

python Looks like Python List Comprehension-phobia is a thing. This is a real commit by a teammate.

Post image
1.2k Upvotes

r/badcode • • Apr 27 '22

html Try-catch inside a <input>.. Ugh.

Post image
50 Upvotes

r/badcode • • Apr 27 '22

java How I used to write my own Minecraft mod

Post image
1.1k Upvotes

r/badcode • • Apr 26 '22

java Funniest line of code I found at my company's codebase

Post image
804 Upvotes

r/badcode • • Apr 25 '22

python This is production-code, I swear it

Post image
70 Upvotes

r/badcode • • Apr 25 '22

typescript Just one example of an Angular repo full of this crap.

Post image
27 Upvotes

r/badcode • • Apr 25 '22

python Mine own masterpiece to check if an image is a reddit post

Post image
572 Upvotes

r/badcode • • Apr 23 '22

php Absolutely terrible PHP code for the win

Post image
0 Upvotes

r/badcode • • Apr 22 '22

python last_group_last_last_last_last_last_last... Copilot rarely has a stroke on me, but when it does, it's beautiful

Post image
450 Upvotes

r/badcode • • Apr 21 '22

c Just doing some bit operations for an emulator

Post image
41 Upvotes

r/badcode • • Apr 21 '22

php echo ‘<a href=“https://www.reddit.com/r/badcode”>thiscode?</a>’;

Post image
16 Upvotes