r/badcode • • Nov 18 '20

js He speaks the language of the gods

Post image
856 Upvotes

r/badcode • • Oct 16 '21

typescript (GitHub Copilot) Who and why did this in their code?

Post image
854 Upvotes

r/badcode • • Mar 28 '21

lua Who needs the OR operator when you can rewrite the same code for each outcome?

Post image
854 Upvotes

r/badcode • • May 25 '22

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

Post image
853 Upvotes

r/badcode • • Oct 29 '20

python This is the code that a popular dutch online exam website uses to generate random numbers for its exercises. Let's just say that my teacher's attempt to generate a 30-bit number did not go as planned. The system tried to allocate a useless 8GiB array and failed...

Post image
850 Upvotes

r/badcode • • Apr 19 '21

c Cases and cases

Post image
848 Upvotes

r/badcode • • Jan 23 '23

python So I was coding and wrote this...

Post image
847 Upvotes

r/badcode • • Mar 03 '23

c# fascinating logic

Post image
845 Upvotes

r/badcode • • Jan 04 '22

python import time

Post image
845 Upvotes

r/badcode • • May 05 '21

other language Saw someone post bad scratch code, here's something I made when I was 12

Thumbnail
gallery
845 Upvotes

r/badcode • • May 26 '23

python Calculator using eval()

Post image
844 Upvotes

r/badcode • • Jul 31 '20

c# Some C# I wrote on my phone a long time ago

Post image
840 Upvotes

r/badcode • • May 05 '20

python Next Level

Post image
840 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
839 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 • • Oct 27 '21

python str()

Post image
836 Upvotes

r/badcode • • May 20 '21

js The site asks for a password and then sends you to www.website.com/<Camuffa(psw>.htm

Post image
836 Upvotes

r/badcode • • Sep 25 '20

python Just found this in my company's old code. (What's shown is about 1/3 of the whole thing)

Post image
834 Upvotes

r/badcode • • Jan 27 '23

python found in the Yandex source leaks

Post image
833 Upvotes

r/badcode • • Nov 14 '21

js Peak Efficiency Fizzbuzz

Post image
831 Upvotes

r/badcode • • Mar 08 '21

js found this on our production code base !

Post image
827 Upvotes

r/badcode • • Sep 05 '20

java Vodka pattern programming, have you heard of it..?

Post image
822 Upvotes

r/badcode • • Sep 02 '20

js I don’t know what I was smoking that day, but I must have completely forgotten Math and “absolute value”, which is probably why I made the function in the first place.

Post image
822 Upvotes

r/badcode • • Aug 27 '20

js operators for if, haha ​​go brrr

Post image
822 Upvotes