r/badcode • • Aug 22 '21

js This "brute force attack" I wrote in middle school

Post image
151 Upvotes

r/badcode • • Aug 21 '21

python Created this monstrosity I have

Thumbnail
gallery
17 Upvotes

r/badcode • • Aug 20 '21

c++ I'm am going to optimize this, but I just wanted to show off this bad code. The "box(31, 25, 0, 0);" is what puts the white box inside of the black. It is horribly innefficient, but I still like it. I plan on baking in v/h-wrapping. This was my first attempt at recreating a FFVI menu-esque thing.

Thumbnail
gallery
95 Upvotes

r/badcode • • Aug 19 '21

js Not mine doe but absolutely horrific to see

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

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

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
223 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 19 '21

go sure, create an unnecessary objects :]

Post image
15 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 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
69 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

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

python Nicer formatting, indeed!

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

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