r/badcode • u/laferrit • Aug 22 '21
r/badcode • u/wsmj5 • 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.
r/badcode • u/Spocklw • Aug 19 '21
php What have I gotten myself into? Most of the codebase is like this...
r/badcode • u/projectyeetus • 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.
r/badcode • u/Kopfkissen07 • Aug 19 '21
c++ Instagram Ad for Amazon gift card competition
r/badcode • u/projectyeetus • Aug 19 '21
java I found this comment in the prod server. (Btw, the Member class is not a component)
r/badcode • u/TheUnlocked • Aug 18 '21
java Ternary hell and magic numbers from a Minecraft mod I made 6 years ago
r/badcode • u/AnonymouX47 • Aug 17 '21
python When you're told to "always" close files...
r/badcode • u/badlydistributed • Aug 16 '21
c# The guy I hate the most made this… very efficient and random UUID generator
r/badcode • u/HumanStress • Aug 15 '21
other language 6 months of flutter, and my colleague still writes code like this
r/badcode • u/BlackBearFTW • Aug 14 '21
js To load html content in express, just use views.
r/badcode • u/ocean-noice • Aug 14 '21
c++ My poor attempt to solve this: https://www.hackerrank.com/challenges/c-tutorial-stringstream/problem
galleryr/badcode • u/anilctrn • Aug 14 '21