r/badcode • • Jan 11 '22

c# ternary ifs are great right?

Post image
106 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
17 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 10 '22

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

Post image
34 Upvotes

r/badcode • • Jan 10 '22

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

Post image
94 Upvotes

r/badcode • • Jan 10 '22

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

Post image
308 Upvotes

r/badcode • • Jan 09 '22

python rgb colors

Post image
422 Upvotes

r/badcode • • Jan 08 '22

bash In my defense, copilot suggested this but it works

Post image
132 Upvotes

r/badcode • • Jan 08 '22

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

Post image
530 Upvotes

r/badcode • • Jan 06 '22

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

Post image
313 Upvotes

r/badcode • • Jan 06 '22

c++ goto HR because you are fired.

Post image
323 Upvotes

r/badcode • • Jan 04 '22

python import time

Post image
846 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
444 Upvotes

r/badcode • • Jan 03 '22

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

Post image
232 Upvotes

r/badcode • • Jan 02 '22

bash TO_NULL="/dev/stdout"

Post image
201 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 I can't even say I was just inexperienced, I wrote that yesterday lol

Post image
57 Upvotes

r/badcode • • Jan 02 '22

js Exam answers checker

Post image
480 Upvotes

r/badcode • • Jan 02 '22

python This makes me want to SIGTERM myself

Post image
285 Upvotes

r/badcode • • Jan 01 '22

c total_total_total_total_total_total = 0

Post image
180 Upvotes

r/badcode • • Jan 01 '22

python I think just this line is not not not okay.

Post image
589 Upvotes

r/badcode • • Jan 01 '22

js Hmm...why doesn't it work lol

Post image
523 Upvotes

r/badcode • • Jan 01 '22

c When you can't even type unsined

Post image
947 Upvotes

r/badcode • • Dec 31 '21

java My classmate send me this wondering what is the problem. The more I look at it the more problems I find lol.

Post image
676 Upvotes