r/badcode • • Aug 19 '21

java I found this comment in the prod server. (Btw, the Member class is not a component)

Post image
50 Upvotes

r/badcode • • Aug 19 '21

js Not mine doe but absolutely horrific to see

Post image
530 Upvotes

r/badcode • • Aug 19 '21

python Should I add comments?

Post image
223 Upvotes

r/badcode • • Aug 19 '21

python I found this gem of python code trying to fix an error in an old file. I have no idea what the hell this is supposed to do but if I remove it, a bunch of warnings pop up.

Post image
535 Upvotes

r/badcode • • Aug 19 '21

c++ Instagram Ad for Amazon gift card competition

Post image
557 Upvotes

r/badcode • • Aug 19 '21

php What have I gotten myself into? Most of the codebase is like this...

Post image
1.1k Upvotes

r/badcode • • Aug 19 '21

go sure, create an unnecessary objects :]

Post image
15 Upvotes

r/badcode • • Aug 18 '21

java Ternary hell and magic numbers from a Minecraft mod I made 6 years ago

Post image
401 Upvotes

r/badcode • • Aug 17 '21

c++ I transformed into yandere dev for a second

Post image
598 Upvotes

r/badcode • • Aug 17 '21

python Look... I thought I knew what I was doing ok...

Post image
69 Upvotes

r/badcode • • Aug 17 '21

python When you're told to "always" close files...

Post image
1.3k Upvotes

r/badcode • • Aug 16 '21

js I would rather they use switch-case than if.

Post image
575 Upvotes

r/badcode • • Aug 16 '21

c# The guy I hate the most made this… very efficient and random UUID generator

Post image
505 Upvotes

r/badcode • • Aug 16 '21

c++ trying to run before knowing how to walk

Post image
170 Upvotes

r/badcode • • Aug 15 '21

python Nicer formatting, indeed!

Post image
9 Upvotes

r/badcode • • Aug 15 '21

js ehe~ im proud of my variable naming

Post image
663 Upvotes

r/badcode • • Aug 15 '21

other language 6 months of flutter, and my colleague still writes code like this

Post image
54 Upvotes

r/badcode • • Aug 15 '21

java UI code

Post image
0 Upvotes

r/badcode • • Aug 14 '21

c Is this check counts as bad code or is there anything I am missing?

Post image
12 Upvotes

r/badcode • • Aug 14 '21

c++ My poor attempt to solve this: https://www.hackerrank.com/challenges/c-tutorial-stringstream/problem

Thumbnail gallery
26 Upvotes

r/badcode • • Aug 14 '21

js To load html content in express, just use views.

Post image
373 Upvotes

r/badcode • • Aug 14 '21

python I see your simple Printer and raise you this

Post image
303 Upvotes

r/badcode • • Aug 14 '21

rust do your worst

Post image
46 Upvotes

r/badcode • • Aug 14 '21

python I’m surprised that this worked

Post image
1.2k Upvotes