r/badcode • • Jun 01 '21

c# DateTimes are hard

Post image
914 Upvotes

r/badcode • • Dec 10 '20

asp/asp.net return !!valid ? Ok(valid) : Ok(!valid ? !valid : valid) //is obviously cleaner here

Post image
914 Upvotes

r/badcode • • Jun 26 '21

js My friend made a Rubik's let's just say it can be optimized

Post image
913 Upvotes

r/badcode • • Mar 29 '21

c# This was from months ago when I was just starting out. Still doesn't excuse the fact that it's garbage code

Post image
911 Upvotes

r/badcode • • Sep 13 '20

c++ And that's how you get a digit from a character

Post image
911 Upvotes

r/badcode • • Oct 11 '21

js Recursive anonymous functions go brrrr

Post image
908 Upvotes

r/badcode • • Mar 01 '21

js Defensive programming or something idk

Post image
907 Upvotes

r/badcode • • Apr 20 '23

python What was beginner me doing that needed tkinter 4 times

Post image
906 Upvotes

r/badcode • • Aug 14 '20

php Array you say? Never heard of this newfangled nonsense...

Post image
906 Upvotes

r/badcode • • Oct 29 '20

java Found this on a coding site, this is the official answer to their exercise

Post image
905 Upvotes

r/badcode • • May 07 '21

js this extends for around 980 lines...

Post image
904 Upvotes

r/badcode • • Feb 02 '22

c# Oh hey, its more of my code.

Post image
902 Upvotes

r/badcode • • Dec 25 '21

js Why you shouldn't write code at 1 am

Post image
902 Upvotes

r/badcode • • Feb 08 '21

python I hate Tkinter but most importantly myself

Post image
901 Upvotes

r/badcode • • May 25 '20

js *weird head shaking and facial expression*

Post image
901 Upvotes

r/badcode • • Dec 27 '21

lua Friend's take on programming a GUI button

Post image
899 Upvotes

r/badcode • • Oct 16 '21

python i watched this live; torture

Post image
898 Upvotes

r/badcode • • Dec 19 '20

js Found this in my scratches, I don't remember writing it

Post image
898 Upvotes

r/badcode • • Jun 04 '23

html HTMHELL

Post image
894 Upvotes

r/badcode • • Jun 27 '20

python overmind (reupload)

Post image
894 Upvotes

r/badcode • • Aug 06 '21

js How to create a virtual keyboard

Post image
893 Upvotes

r/badcode • • Mar 19 '22

c# Checking if sentence contains all the letters from alphabet NSFW

Post image
891 Upvotes

r/badcode • • Apr 10 '21

js Example from a freeBootCamp article showed as a valid example of good pratice.

Post image
890 Upvotes

r/badcode • • May 04 '23

typescript Found this gem inside legacy code today

Post image
889 Upvotes