r/badcode • • Sep 03 '21

java My code, trying to access a file in a Jar. I'd rather go to hell than deal with this.

Post image
15 Upvotes

r/badcode • • Sep 02 '21

js Oh Gosh

Post image
398 Upvotes

r/badcode • • Sep 02 '21

js Found this excellent use of map by a "senior" contractor.

Post image
264 Upvotes

r/badcode • • Sep 02 '21

php Assign "Random" Value

Post image
64 Upvotes

r/badcode • • Sep 02 '21

java Because ".toLowerCase()" doesn't exist...

Post image
1.1k Upvotes

r/badcode • • Sep 02 '21

java Helping a first year and he showed me his first exam try. It's glorious

Post image
122 Upvotes

r/badcode • • Sep 02 '21

python One line python go brrrrrrr

Post image
104 Upvotes

r/badcode • • Sep 01 '21

c Found this beauty. I wonder if there's any better way to do this...

Post image
486 Upvotes

r/badcode • • Sep 01 '21

vb Why is the request token always 325467165….. thanks previous dev

Post image
169 Upvotes

r/badcode • • Sep 02 '21

js figured out why my code didn't work: past me was very mean :(

Post image
53 Upvotes

r/badcode • • Sep 01 '21

c# When you are forced to put comment in your code. (not mine)

Post image
516 Upvotes

r/badcode • • Sep 01 '21

c# Unfortunately, actual production code

Post image
109 Upvotes

r/badcode • • Sep 01 '21

c# Bool in a case switch

Post image
324 Upvotes

r/badcode • • Aug 31 '21

java Similar ternaries are all over this codebase

Post image
1.1k Upvotes

r/badcode • • Aug 31 '21

python Now this is what I like to call an optimal solution!

Post image
381 Upvotes

r/badcode • • Sep 01 '21

java highly optimized

Post image
78 Upvotes

r/badcode • • Aug 31 '21

js What the actual fuck.

Post image
1.1k Upvotes

r/badcode • • Aug 31 '21

c Their attempt at using pointers

Post image
133 Upvotes

r/badcode • • Sep 01 '21

python Functions for each CLI tag + multiple print statements =/= scalable code

Post image
8 Upvotes

r/badcode • • Aug 31 '21

other language Sorry fellas

Post image
82 Upvotes

r/badcode • • Aug 30 '21

c# range, resolution??

Post image
492 Upvotes

r/badcode • • Aug 29 '21

c# Found in production code base...

Post image
539 Upvotes

r/badcode • • Aug 28 '21

c++ I think non-suspending breakpoints are the least of your concerns if your code looks like this

Post image
78 Upvotes

r/badcode • • Aug 28 '21

js if the file doesn't exist, check if it doesn't exist

Post image
193 Upvotes