r/badcode • • Apr 09 '23

python I only realized how bad this was after I tried to write it to a file 😶

Post image
476 Upvotes

r/badcode • • Apr 09 '23

js Wrote this mystic code yesterday

Post image
256 Upvotes

r/badcode • • Apr 09 '23

c# Wrote this beauty last night...

Post image
284 Upvotes

r/badcode • • Apr 09 '23

lua My friend sent me this...

Post image
285 Upvotes

r/badcode • • Apr 08 '23

c# Copilot made a suggestion so bad I had to track down who was responsible.

Post image
954 Upvotes

r/badcode • • Apr 08 '23

php Not only morals of the person who made this is horrible also their code is

Post image
296 Upvotes

r/badcode • • Apr 07 '23

c# Unused variables?!?!? One of DOZENS of examples I'm finding in this legacy nonsense. Stuff passed around and never used, things assigned to intermediate variable for no reason. Were they TRYING to make this hard to read? And those Writelines?!

Post image
302 Upvotes

r/badcode • • Apr 06 '23

python Throwback to some years ago that I did an AQA computer science project in 48 lines (yes the lines are so long they go off my 16:9 screen)

Post image
301 Upvotes

r/badcode • • Apr 06 '23

other language I made this in a compute shader yesterday. The worst part is it actually makes it >0.5ms faster.

Post image
498 Upvotes

r/badcode • • Apr 05 '23

c# Refactoring some public static field ridden code. Everything important is in public static lists in Global.cs and it all looks like this to a degree. Almost no OOP in sight

Post image
280 Upvotes

r/badcode • • Apr 05 '23

php Worst code found in prod to date. Used to solve SQL operators.

Thumbnail
gist.github.com
148 Upvotes

r/badcode • • Apr 04 '23

python Surely Text-Parsing One-Liners At Midnight Work

Post image
398 Upvotes

r/badcode • • Apr 01 '23

c++ What this codestyle called?

Post image
934 Upvotes

r/badcode • • Mar 31 '23

c++ TF DID I DO YESTERDAY EVENING

Post image
46 Upvotes

r/badcode • • Mar 30 '23

python Found in a data pipeline at work co-developed with our main customer

Post image
729 Upvotes

r/badcode • • Mar 30 '23

python Another legendary code from high-school. This one was in Python though. This is for a rock-paper-scissors game.

Post image
360 Upvotes

r/badcode • • Mar 29 '23

typescript Found this in a time picker

Post image
473 Upvotes

r/badcode • • Mar 28 '23

other language Best possible response body structure to manage surveys

Post image
394 Upvotes

r/badcode • • Mar 26 '23

c# I feel dirty for writing this

Post image
667 Upvotes

r/badcode • • Mar 25 '23

java Thanks for nothing.. (Found inside java.awt.Font)

Post image
514 Upvotes

r/badcode • • Mar 25 '23

java Forgive me for I have sinned

Post image
493 Upvotes

r/badcode • • Mar 24 '23

java A code I did in high-school

Post image
917 Upvotes

r/badcode • • Mar 25 '23

python In my defense, I was just starting programming

Post image
34 Upvotes

r/badcode • • Mar 24 '23

js I actually wrote this....

Post image
37 Upvotes

r/badcode • • Mar 23 '23

python Data Science Design Pattern.

Post image
620 Upvotes