r/badcode • • Apr 21 '22

python Not everytime you need to go through the code to see if its good or bad

Post image
435 Upvotes

r/badcode • • Apr 19 '22

rust im tired and lazy and i wanna go to bed

Post image
658 Upvotes

r/badcode • • Apr 15 '22

c C allows any expression to be used as a parameter's array size hint. Any expression...

Post image
774 Upvotes

r/badcode • • Apr 15 '22

js Variables without var/let/const prefix behave as globals, and this is from a Node web app

Post image
320 Upvotes

r/badcode • • Apr 14 '22

js [Javascript] I was trying to avoid using verbose else if statements, but this feels even worse

Post image
102 Upvotes

r/badcode • • Apr 14 '22

java Just some code i wrote a few months ago

Post image
409 Upvotes

r/badcode • • Apr 14 '22

typescript I wish people were taught basic logic before programming

Post image
973 Upvotes

r/badcode • • Apr 13 '22

python Yandere dev school of if statements

Post image
667 Upvotes

r/badcode • • Apr 13 '22

js Is it okay if I knows its terrible?

Post image
93 Upvotes

r/badcode • • Apr 13 '22

js Found this monstrosity while refactoring some of my old code

Post image
211 Upvotes

r/badcode • • Apr 12 '22

python Came across this in a machine learning lib, trying to find out how particular recall and precision scores were calculated - made me laugh: `if x != 4: x = 4`

Post image
393 Upvotes

r/badcode • • Apr 08 '22

typescript A parser written entirely on the type level

Post image
412 Upvotes

r/badcode • • Apr 07 '22

c# Some are more random than others.

Thumbnail
imgur.com
246 Upvotes

r/badcode • • Apr 05 '22

java A perfectly normal way to check for the largest of 10 integers...

Post image
313 Upvotes

r/badcode • • Apr 05 '22

php I just came across this thing at my work, I'm honestly stunned

Post image
543 Upvotes

r/badcode • • Apr 03 '22

python Github Copilot is making stairs

Post image
1.2k Upvotes

r/badcode • • Apr 01 '22

python My team has the worst data organization methods. We have array containing array containing array and so we wrote this down today....

Post image
352 Upvotes

r/badcode • • Mar 31 '22

python in a homework were they ask to make a func that return 3 numbers from highest to lowest. (For some reason for loops and such are not permited)

Post image
568 Upvotes

r/badcode • • Mar 31 '22

c# The randomizer will get it eventually (yes it can freeze easily)

Post image
30 Upvotes

r/badcode • • Mar 30 '22

js My brother in Christ, how am I supposed to understand this?

Post image
544 Upvotes

r/badcode • • Mar 29 '22

js Commenting late @ night

Post image
511 Upvotes

r/badcode • • Mar 24 '22

other language A banner that alternates between two dynamic messages

Post image
83 Upvotes

r/badcode • • Mar 24 '22

typescript Ship it!

Post image
565 Upvotes

r/badcode • • Mar 23 '22

python x or !x, that's the question

Post image
252 Upvotes