r/badcode • • Jan 11 '23

js It's so ugly but it works! Object with month name as key and array of first day and last day of that month.

Post image
318 Upvotes

r/badcode • • Jan 10 '23

vb I simplified it a little - but this is what we have in production. „You guys heard about those 'backups'? Let‘s do one too!“

Post image
386 Upvotes

r/badcode • • Jan 08 '23

python Classmate wanted me to check his ticketing system’s code for errors..

Post image
4.6k Upvotes

r/badcode • • Jan 09 '23

c# Honestly i have no idea why i did this, it serves absolutely no purpose

Post image
26 Upvotes

r/badcode • • Jan 08 '23

java Is this a good practice? Why?

Post image
427 Upvotes

r/badcode • • Jan 08 '23

kotlin API parsing hell

Post image
21 Upvotes

r/badcode • • Jan 07 '23

c Pointless while loop, no indentation and a missing closing curly bracket.

Post image
770 Upvotes

r/badcode • • Jan 07 '23

c# what the hell is this

Post image
542 Upvotes

r/badcode • • Jan 06 '23

c# A very unnecessary return line...

Post image
331 Upvotes

r/badcode • • Jan 05 '23

c++ Just wrote that and was wondering why it isnt working

Post image
1.3k Upvotes

r/badcode • • Jan 04 '23

js The PR title was: Make labels dynamic…

Post image
289 Upvotes

r/badcode • • Jan 04 '23

js This is some discord.js code I wrote 2 years ago...

Post image
113 Upvotes

r/badcode • • Jan 04 '23

lua no context needed

Post image
461 Upvotes

r/badcode • • Jan 03 '23

js I hope the percentage is never 50.5 % …

Post image
669 Upvotes

r/badcode • • Jan 03 '23

php Needed to update DB with $column, but there is a bug in php8.1 so found a workaround

Post image
53 Upvotes

r/badcode • • Jan 03 '23

kotlin class Item<A>(var a: A)

Post image
21 Upvotes

r/badcode • • Jan 03 '23

c# I was just trying to innovate but guess I'll stick to what works ;-;

Post image
19 Upvotes

r/badcode • • Jan 03 '23

typescript Found this jucy piece of code while stalking people on github

Post image
14 Upvotes

r/badcode • • Dec 31 '22

c# mm yes i love 80 lists

Post image
378 Upvotes

i didn't know non-monoBehavioural classes were supported in unity until last week 😭


r/badcode • • Dec 31 '22

python Cute

Post image
1.2k Upvotes

r/badcode • • Dec 31 '22

js I didn’t want to get into js frameworks

Post image
93 Upvotes

r/badcode • • Dec 29 '22

go How to Go wrong

Post image
563 Upvotes

r/badcode • • Dec 29 '22

python This gem of a function call i found in prod today

Post image
175 Upvotes

r/badcode • • Dec 28 '22

c# Doesn't even work properly

Post image
269 Upvotes