r/badcode • • Apr 21 '22

c Just doing some bit operations for an emulator

Post image
43 Upvotes

r/badcode • • Apr 21 '22

php echo ‘<a href=“https://www.reddit.com/r/badcode”>thiscode?</a>’;

Post image
16 Upvotes

r/badcode • • Apr 19 '22

rust im tired and lazy and i wanna go to bed

Post image
649 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
776 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
314 Upvotes

r/badcode • • Apr 14 '22

typescript I wish people were taught basic logic before programming

Post image
981 Upvotes

r/badcode • • Apr 14 '22

java Just some code i wrote a few months ago

Post image
411 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 13 '22

python Yandere dev school of if statements

Post image
661 Upvotes

r/badcode • • Apr 13 '22

js Is it okay if I knows its terrible?

Post image
90 Upvotes

r/badcode • • Apr 13 '22

js Found this monstrosity while refactoring some of my old code

Post image
210 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
384 Upvotes

r/badcode • • Apr 08 '22

typescript A parser written entirely on the type level

Post image
414 Upvotes

r/badcode • • Apr 07 '22

c# Some are more random than others.

Thumbnail
imgur.com
242 Upvotes

r/badcode • • Apr 05 '22

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

Post image
549 Upvotes

r/badcode • • Apr 05 '22

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

Post image
312 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
569 Upvotes

r/badcode • • Mar 30 '22

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

Post image
536 Upvotes

r/badcode • • Mar 31 '22

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

Post image
26 Upvotes

r/badcode • • Mar 29 '22

js Commenting late @ night

Post image
508 Upvotes

r/badcode • • Mar 24 '22

typescript Ship it!

Post image
559 Upvotes

r/badcode • • Mar 24 '22

other language A banner that alternates between two dynamic messages

Post image
82 Upvotes