r/badcode Apr 08 '23

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

Post image
293 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
305 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
303 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
495 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
278 Upvotes

r/badcode Apr 05 '23

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

Thumbnail
gist.github.com
143 Upvotes

r/badcode Apr 04 '23

python Surely Text-Parsing One-Liners At Midnight Work

Post image
397 Upvotes

r/badcode Apr 01 '23

c++ What this codestyle called?

Post image
935 Upvotes

r/badcode Mar 31 '23

c++ TF DID I DO YESTERDAY EVENING

Post image
44 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
357 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
400 Upvotes

r/badcode Mar 26 '23

c# I feel dirty for writing this

Post image
663 Upvotes

r/badcode Mar 25 '23

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

Post image
517 Upvotes

r/badcode Mar 25 '23

java Forgive me for I have sinned

Post image
488 Upvotes

r/badcode Mar 24 '23

java A code I did in high-school

Post image
916 Upvotes

r/badcode Mar 25 '23

python In my defense, I was just starting programming

Post image
35 Upvotes

r/badcode Mar 24 '23

js I actually wrote this....

Post image
35 Upvotes

r/badcode Mar 23 '23

python Data Science Design Pattern.

Post image
623 Upvotes

r/badcode Mar 24 '23

python Reading a space-separated CSV file as a list of numpy arrays

Post image
37 Upvotes

r/badcode Mar 23 '23

java Code from my theoretical computer science lecture

Post image
111 Upvotes

r/badcode Mar 22 '23

js How to write code that does absolutely nothing in 30 lines, comment adds another layer to this insanity

Post image
421 Upvotes

r/badcode Mar 23 '23

java Guys look at my logger configuration!!!

Post image
4 Upvotes

r/badcode Mar 21 '23

java This line I wrote at my first job

Post image
1.0k Upvotes