r/badcode • • Apr 12 '23

c Doing my university project. I thought these would be more comfortable than a bunch of "temp"s.

Post image
708 Upvotes

r/badcode • • Dec 15 '21

sql You've heard of magic numbers, now try magic dates that are really numbers in disguise!

Post image
707 Upvotes

r/badcode • • Dec 03 '19

python So many things wrong...

Post image
707 Upvotes

r/badcode • • Apr 30 '23

c++ I guess a coding school ad can be considered production code

Post image
704 Upvotes

r/badcode • • Jul 09 '20

java Good practice: Always call java.lang.Object's constructor

Post image
704 Upvotes

r/badcode • • Sep 20 '19

php So what's being activated?

Post image
702 Upvotes

r/badcode • • Jan 06 '21

c# Found this in the Backend Today

Post image
698 Upvotes

r/badcode • • Oct 18 '21

python found in a text to handwriting converter

Post image
697 Upvotes

r/badcode • • Dec 20 '20

c# Was looking through my code and found this.

Post image
697 Upvotes

r/badcode • • Aug 12 '20

c# How do you null check?

Post image
697 Upvotes

r/badcode • • Jul 08 '20

python Swaps variables like a charm but only when the seed is 69 :(

Post image
697 Upvotes

r/badcode • • May 14 '23

c++ Took me 2 months to find this

Post image
696 Upvotes

r/badcode • • Jul 08 '19

c# While reviewing code today...

Post image
696 Upvotes

r/badcode • • Jan 21 '21

js Not entirely sure what I was thinking

Post image
693 Upvotes

r/badcode • • Jan 02 '21

c++ I saw this in a YouTube tutorial. Because sure, `ull` and `long int` are basically the same right?

Post image
693 Upvotes

r/badcode • • Feb 20 '20

other language I'm deeply sorry for creating the worst language on earth

Post image
693 Upvotes

r/badcode • • Apr 11 '23

c++ "We have doxygen documentation at home" The doxygen documentation at home:

Post image
691 Upvotes

r/badcode • • Jan 16 '23

typescript My classmate told me his code wasn't very clean... But this one still surprised me

Post image
691 Upvotes

r/badcode • • Jul 01 '21

c How to read a file in C, according to NETGEAR's coders.

Post image
691 Upvotes

r/badcode • • Jan 14 '23

c# actually fixing errors is for nerds

Post image
689 Upvotes

r/badcode • • Aug 21 '20

js moment.js: modern problems require modern solutions.

Post image
688 Upvotes

r/badcode • • Sep 07 '19

c++ Value not found? Let's just hang your processor

Post image
688 Upvotes

r/badcode • • May 04 '21

ruby Found this little snippet in the codebase today.

Post image
687 Upvotes

r/badcode • • Jul 25 '20

c# Here we go again lol...

Post image
687 Upvotes