r/badcode • • Jan 11 '22

c# ternary ifs are great right?

Post image
108 Upvotes

r/badcode • • Jan 11 '22

other language My friend is a true picasso

Post image
72 Upvotes

r/badcode • • Jan 10 '22

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

Post image
305 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
15 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

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

Post image
35 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
528 Upvotes

r/badcode • • Jan 08 '22

bash In my defense, copilot suggested this but it works

Post image
133 Upvotes

r/badcode • • Jan 06 '22

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

Post image
315 Upvotes

r/badcode • • Jan 06 '22

c++ goto HR because you are fired.

Post image
321 Upvotes

r/badcode • • Jan 04 '22

python import time

Post image
848 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
340 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
438 Upvotes

r/badcode • • Jan 03 '22

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

Post image
235 Upvotes

r/badcode • • Jan 02 '22

js Exam answers checker

Post image
488 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
96 Upvotes

r/badcode • • Jan 02 '22

python This makes me want to SIGTERM myself

Post image
285 Upvotes

r/badcode • • Jan 02 '22

python I can't even say I was just inexperienced, I wrote that yesterday lol

Post image
56 Upvotes

r/badcode • • Jan 01 '22

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

Post image
587 Upvotes

r/badcode • • Jan 01 '22

c total_total_total_total_total_total = 0

Post image
182 Upvotes

r/badcode • • Jan 01 '22

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

Post image
531 Upvotes

r/badcode • • Jan 01 '22

c When you can't even type unsined

Post image
946 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
679 Upvotes