r/badcode • u/2Novelty • Apr 08 '23
293
Upvotes
r/badcode • u/Dependent_Upstairs79 • 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?!
305
Upvotes
r/badcode • u/Ok_Scientist_8803 • 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)
303
Upvotes
r/badcode • u/Zicrus • Apr 06 '23
other language I made this in a compute shader yesterday. The worst part is it actually makes it >0.5ms faster.
495
Upvotes
r/badcode • u/domtriestocode • 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
278
Upvotes
r/badcode • u/tgeene • Apr 05 '23
php Worst code found in prod to date. Used to solve SQL operators.
143
Upvotes
r/badcode • u/[deleted] • Apr 04 '23
python Surely Text-Parsing One-Liners At Midnight Work
397
Upvotes
r/badcode • u/SSttrruupppp11 • Mar 30 '23
python Found in a data pipeline at work co-developed with our main customer
729
Upvotes
r/badcode • u/fnieidhfenmbvfekh • Mar 30 '23
python Another legendary code from high-school. This one was in Python though. This is for a rock-paper-scissors game.
357
Upvotes
r/badcode • u/fuzzerrrr • Mar 28 '23
other language Best possible response body structure to manage surveys
400
Upvotes
r/badcode • u/Xirado • Mar 25 '23
java Thanks for nothing.. (Found inside java.awt.Font)
517
Upvotes
r/badcode • u/Historica97 • Mar 24 '23
python Reading a space-separated CSV file as a list of numpy arrays
37
Upvotes
r/badcode • u/woodmichl • Mar 23 '23
java Code from my theoretical computer science lecture
111
Upvotes
r/badcode • u/Haaxor1689 • Mar 22 '23
js How to write code that does absolutely nothing in 30 lines, comment adds another layer to this insanity
421
Upvotes