Another legendary code from high-school. This one was in Python though. This is for a rock-paper-scissors game.
https://redd.it/126jt9p
@r_badcode
https://redd.it/126jt9p
@r_badcode
Found in a data pipeline at work co-developed with our main customer
https://redd.it/126qbkl
@r_badcode
https://redd.it/126qbkl
@r_badcode
Function that has the vibe of that "This floor is made of floor" meme.
https://redd.it/128dvrd
@r_badcode
https://redd.it/128dvrd
@r_badcode
Worst code found in prod to date. Used to solve SQL operators.
https://gist.github.com/roundskytrevor/9e89947bae9054c58755943a1637464b
https://redd.it/12cogna
@r_badcode
https://gist.github.com/roundskytrevor/9e89947bae9054c58755943a1637464b
https://redd.it/12cogna
@r_badcode
Gist
Worst code found in prod to date 04-05-2023
Worst code found in prod to date 04-05-2023. GitHub Gist: instantly share code, notes, and snippets.
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
https://redd.it/12d1pgp
@r_badcode
https://redd.it/12d1pgp
@r_badcode
I made this in a compute shader yesterday. The worst part is it actually makes it >0.5ms faster.
https://redd.it/12deeqh
@r_badcode
https://redd.it/12deeqh
@r_badcode
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)
https://redd.it/12dxif5
@r_badcode
https://redd.it/12dxif5
@r_badcode
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?!
https://redd.it/12evdrn
@r_badcode
https://redd.it/12evdrn
@r_badcode
Not only morals of the person who made this is horrible also their code is
https://redd.it/12ffcoo
@r_badcode
https://redd.it/12ffcoo
@r_badcode
Copilot made a suggestion so bad I had to track down who was responsible.
https://redd.it/12g1r80
@r_badcode
https://redd.it/12g1r80
@r_badcode
I only realized how bad this was after I tried to write it to a file 😶
https://redd.it/12gwirz
@r_badcode
https://redd.it/12gwirz
@r_badcode
"We have doxygen documentation at home" The doxygen documentation at home:
https://redd.it/12ijfft
@r_badcode
https://redd.it/12ijfft
@r_badcode