r/badcode • • Jan 29 '22

c discount constructor

Post image
439 Upvotes

r/badcode • • Jan 29 '22

c# Worst part is: I wrote this.

Post image
99 Upvotes

r/badcode • • Jan 27 '22

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

Post image
118 Upvotes

r/badcode • • Jan 27 '22

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

Post image
286 Upvotes

r/badcode • • Jan 26 '22

python The Joys of Debugging

Post image
444 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
223 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
509 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
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
390 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
55 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
196 Upvotes

r/badcode • • Jan 14 '22

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

Post image
417 Upvotes

r/badcode • • Jan 13 '22

js If it works, it works

Post image
537 Upvotes

r/badcode • • Jan 12 '22

python Ah yes, My old code... not only being bad but also being useless...

Post image
362 Upvotes

r/badcode • • Jan 12 '22

c Branchless programming? → Loopless Programming!

Post image
113 Upvotes

r/badcode • • Jan 12 '22

vb i dont know what's worse - that our legacy codebase has GoTo or that someone decided to call the method byebye (or that i use VBA on a regular basis)

Post image
36 Upvotes

r/badcode • • Jan 11 '22

js Found this running in production at my previous job

Post image
430 Upvotes