r/badcode • u/2133 • Nov 18 '20
r/badcode • u/phandungtri • Oct 16 '21
typescript (GitHub Copilot) Who and why did this in their code?
854
Upvotes
r/badcode • u/-ZOSK- • Mar 28 '21
lua Who needs the OR operator when you can rewrite the same code for each outcome?
854
Upvotes
r/badcode • u/[deleted] • May 25 '22
c This is WORKING code. BTW print() is a custom function.
853
Upvotes
r/badcode • u/SGVsbG86KQ • 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...
850
Upvotes
r/badcode • u/the_other_Scaevitas • May 05 '21
other language Saw someone post bad scratch code, here's something I made when I was 12
845
Upvotes
r/badcode • u/Buddy-Matt • May 06 '22
php Found in my own code from less than a week ago. I don't know what I was thinking...
839
Upvotes
r/badcode • u/hahapotatoman • May 27 '22
java yes, I unironically used this in a game I made ~4 years ago
838
Upvotes
r/badcode • u/gabryGone • May 20 '21
js The site asks for a password and then sends you to www.website.com/<Camuffa(psw>.htm
836
Upvotes
r/badcode • u/local_meme_dealer45 • Sep 25 '20
python Just found this in my company's old code. (What's shown is about 1/3 of the whole thing)
834
Upvotes
r/badcode • u/[deleted] • Sep 05 '20
java Vodka pattern programming, have you heard of it..?
822
Upvotes
r/badcode • u/[deleted] • 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.
822
Upvotes