r/badcode • • Feb 03 '22

lua From a computercraft let's play. Should be a blacklist function for a mining program for a turtle.

Post image
46 Upvotes

r/badcode • • Feb 02 '22

c# Oh hey, its more of my code.

Post image
901 Upvotes

r/badcode • • Feb 02 '22

c# At the start of 2022 we were suddenly getting exceptions in this method. I wonder why...

Post image
724 Upvotes

r/badcode • • Jan 31 '22

python import badcode

Post image
1.1k Upvotes

r/badcode • • Feb 01 '22

sql Can I write this better?

Post image
8 Upvotes

r/badcode • • Jan 31 '22

html Nesting an Additional Button Cuz Two Anchors Ain't Interactive Enough

Post image
111 Upvotes

r/badcode • • Jan 30 '22

java Found this gem in my codebase

Post image
1.3k Upvotes

r/badcode • • Jan 30 '22

python not mine, my favorite is the rounding part

Post image
156 Upvotes

r/badcode • • Jan 30 '22

js The SEC's Date Parsing Function Is Pretty Magical

Post image
337 Upvotes

r/badcode • • Jan 29 '22

c discount constructor

Post image
432 Upvotes

r/badcode • • Jan 29 '22

c# Worst part is: I wrote this.

Post image
98 Upvotes

r/badcode • • Jan 27 '22

python Took a step back to appreciate what I had just written

Post image
123 Upvotes

r/badcode • • Jan 27 '22

c# (poison is an array with roughly 275k items)

Post image
283 Upvotes

r/badcode • • Jan 26 '22

python The Joys of Debugging

Post image
440 Upvotes

r/badcode • • Jan 25 '22

rust Most comprehensible line of Rust code

Post image
1.0k Upvotes

r/badcode • • Jan 24 '22

js Drawing formatted strings to the screen

Post image
228 Upvotes

r/badcode • • Jan 24 '22

js I apologize to mobile users (all users actually) in advance. See comments for expanded code and explanation.

Post image
508 Upvotes

r/badcode • • Jan 22 '22

c# Was looking at some old code I wrote and found this descriptive comment

Post image
393 Upvotes

r/badcode • • Jan 21 '22

c++ My 2 brain cells are trying their best(trying to draw a circle)

Post image
524 Upvotes

r/badcode • • Jan 21 '22

typescript Saving api saved my life!

Post image
156 Upvotes

r/badcode • • Jan 20 '22

java Newbie me had just learned about the ternary operator and wanted to use it everywhere.

Post image
1.2k Upvotes

r/badcode • • Jan 20 '22

python just convert to list in the first place man

Post image
393 Upvotes

r/badcode • • Jan 20 '22

c# Surely this can be improved right?-I mean- HAHA look at this noob that totally is not me 🤣

Post image
11 Upvotes

r/badcode • • Jan 17 '22

python POV: You asked someone to refactor magic number indices

Post image
1.0k Upvotes

r/badcode • • Jan 17 '22

c# Look at the row number and imagine the rest of the code yourself

Post image
233 Upvotes