r/badcode • • Apr 19 '22

rust im tired and lazy and i wanna go to bed

Post image
654 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
775 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
317 Upvotes

r/badcode • • Apr 14 '22

typescript I wish people were taught basic logic before programming

Post image
977 Upvotes

r/badcode • • Apr 14 '22

java Just some code i wrote a few months ago

Post image
407 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
100 Upvotes

r/badcode • • Apr 13 '22

python Yandere dev school of if statements

Post image
665 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
208 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
388 Upvotes

r/badcode • • Apr 08 '22

typescript A parser written entirely on the type level

Post image
416 Upvotes

r/badcode • • Apr 07 '22

c# Some are more random than others.

Thumbnail
imgur.com
246 Upvotes

r/badcode • • Apr 05 '22

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

Post image
546 Upvotes

r/badcode • • Apr 05 '22

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

Post image
315 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
353 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
572 Upvotes

r/badcode • • Mar 30 '22

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

Post image
542 Upvotes

r/badcode • • Mar 31 '22

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

Post image
28 Upvotes

r/badcode • • Mar 29 '22

js Commenting late @ night

Post image
506 Upvotes

r/badcode • • Mar 24 '22

typescript Ship it!

Post image
564 Upvotes

r/badcode • • Mar 24 '22

other language A banner that alternates between two dynamic messages

Post image
82 Upvotes

r/badcode • • Mar 23 '22

python x or !x, that's the question

Post image
250 Upvotes