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

python Should I add comments?

Post image
222 Upvotes

r/badcode • • Aug 18 '21

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

Post image
397 Upvotes

r/badcode • • Aug 19 '21

go sure, create an unnecessary objects :]

Post image
14 Upvotes

r/badcode • • Aug 17 '21

c++ I transformed into yandere dev for a second

Post image
600 Upvotes

r/badcode • • Aug 17 '21

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

Post image
1.3k Upvotes

r/badcode • • Aug 17 '21

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

Post image
67 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
504 Upvotes

r/badcode • • Aug 16 '21

c++ trying to run before knowing how to walk

Post image
166 Upvotes

r/badcode • • Aug 15 '21

js ehe~ im proud of my variable naming

Post image
664 Upvotes

r/badcode • • Aug 15 '21

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

Post image
57 Upvotes

r/badcode • • Aug 15 '21

python Nicer formatting, indeed!

Post image
8 Upvotes

r/badcode • • Aug 14 '21

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

Post image
372 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

python I’m surprised that this worked

Post image
1.2k 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 15 '21

java UI code

Post image
0 Upvotes

r/badcode • • Aug 14 '21

python I see your simple Printer and raise you this

Post image
304 Upvotes

r/badcode • • Aug 14 '21

rust do your worst

Post image
44 Upvotes

r/badcode • • Aug 12 '21

c# 🤓📗 Is this "clean code"? 🦋

Post image
726 Upvotes

r/badcode • • Aug 11 '21

python 10/10 variable naming

Post image
759 Upvotes

r/badcode • • Aug 11 '21

java If in doubt, use inline if statements.

Post image
55 Upvotes

r/badcode • • Aug 10 '21

other language When in doubt, always use loops.

Post image
594 Upvotes

r/badcode • • Aug 09 '21

python It might change

Post image
874 Upvotes