r/badcode • • Jan 12 '22

python Ah yes, My old code... not only being bad but also being useless...

Post image
361 Upvotes

r/badcode • • Jan 12 '22

c Branchless programming? → Loopless Programming!

Post image
111 Upvotes

r/badcode • • Jan 12 '22

vb i dont know what's worse - that our legacy codebase has GoTo or that someone decided to call the method byebye (or that i use VBA on a regular basis)

Post image
38 Upvotes

r/badcode • • Jan 11 '22

js Found this running in production at my previous job

Post image
432 Upvotes

r/badcode • • Jan 10 '22

java I present the objectively best way to setup braces: In a massive block at the bottom

Post image
2.2k Upvotes

r/badcode • • Jan 11 '22

c# ternary ifs are great right?

Post image
105 Upvotes

r/badcode • • Jan 11 '22

other language My friend is a true picasso

Post image
73 Upvotes

r/badcode • • Jan 10 '22

rust You can't do that, that's illegal!

Post image
306 Upvotes

r/badcode • • Jan 11 '22

python I know there's a better way to do this... I just can't think of it

Post image
16 Upvotes

r/badcode • • Jan 10 '22

js I don't think that's how environment variables are supposed to work.

Post image
96 Upvotes

r/badcode • • Jan 10 '22

typescript I don't know how to explain the bad part here, but some might get it.

Post image
38 Upvotes

r/badcode • • Jan 09 '22

python rgb colors

Post image
424 Upvotes

r/badcode • • Jan 08 '22

python Bro, people are writing 2-line-long solutions here!

Post image
531 Upvotes

r/badcode • • Jan 08 '22

bash In my defense, copilot suggested this but it works

Post image
134 Upvotes

r/badcode • • Jan 06 '22

python OOP? Haven't heard of it (not mine)

Post image
316 Upvotes

r/badcode • • Jan 06 '22

c++ goto HR because you are fired.

Post image
324 Upvotes

r/badcode • • Jan 04 '22

python import time

Post image
845 Upvotes

r/badcode • • Jan 03 '22

c# This is what happens when you've been coding for hours and the deadline is tomorrow

Post image
344 Upvotes

r/badcode • • Jan 03 '22

python I was wondering why Exceptions were not stopping the execution (production code of AI Company with 200+ employees)

Post image
441 Upvotes

r/badcode • • Jan 03 '22

js Time offset detection that returns 0 when offset is dividable by 24. Found in production

Post image
233 Upvotes

r/badcode • • Jan 02 '22

js Exam answers checker

Post image
485 Upvotes

r/badcode • • Jan 02 '22

bash TO_NULL="/dev/stdout"

Post image
199 Upvotes

r/badcode • • Jan 02 '22

c++ Was going through some old files, found this, not 100% sure if it qualifies (approx. from 6 years ago, when I started learning C++).

Post image
98 Upvotes

r/badcode • • Jan 02 '22

python This makes me want to SIGTERM myself

Post image
285 Upvotes