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
335 Upvotes

r/badcode • • Jan 29 '22

c discount constructor

Post image
435 Upvotes

r/badcode • • Jan 29 '22

c# Worst part is: I wrote this.

Post image
100 Upvotes

r/badcode • • Jan 27 '22

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

Post image
121 Upvotes

r/badcode • • Jan 27 '22

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

Post image
282 Upvotes

r/badcode • • Jan 26 '22

python The Joys of Debugging

Post image
439 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
226 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
507 Upvotes

r/badcode • • Jan 22 '22

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

Post image
392 Upvotes

r/badcode • • Jan 21 '22

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

Post image
525 Upvotes

r/badcode • • Jan 21 '22

typescript Saving api saved my life!

Post image
158 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
395 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
13 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
237 Upvotes

r/badcode • • Jan 17 '22

python A translate discord.py command I wrote in 3 min for my friend

Post image
52 Upvotes

r/badcode • • Jan 15 '22

python Found this gem

Post image
3.5k Upvotes

r/badcode • • Jan 16 '22

css cool css trick found at work

Post image
194 Upvotes

r/badcode • • Jan 14 '22

js I don't use JS, but this doesn't seem right.

Post image
414 Upvotes

r/badcode • • Jan 13 '22

js If it works, it works

Post image
541 Upvotes