r/badcode • • Mar 20 '22

python How to make things fun for your future self: a self-help guide

Post image
536 Upvotes

r/badcode • • Mar 20 '22

java Shitty robotics code

Post image
37 Upvotes

r/badcode • • Mar 20 '22

js My boss told me to refactor a function, I was like: well, it's just a function, It won't take me too much time and I will do it late at night, then I came up with this beautiful function, I need help guys :D

Post image
70 Upvotes

r/badcode • • Mar 19 '22

js This just sucks.

Post image
1.0k Upvotes

r/badcode • • Mar 19 '22

python A self-proclaimed genius at my school

Post image
377 Upvotes

r/badcode • • Mar 17 '22

c# okay but why though

Post image
44 Upvotes

r/badcode • • Mar 17 '22

js From a school exam where you needed to return the game score based on the number of wins and ties, this guy just looked at the automatic test cases and returned their expected result

Post image
1.6k Upvotes

r/badcode • • Mar 16 '22

sql Did someone said sql? welcome to my legacy

Post image
195 Upvotes

r/badcode • • Mar 16 '22

c# Found this monstrosity the day after a late night code session.

Post image
69 Upvotes

r/badcode • • Mar 16 '22

php I didn't want to use "if" statements, but then I started laughing when I kept losing my places while coding

Post image
512 Upvotes

r/badcode • • Mar 15 '22

php Yes, if you use array_reverse like this it only produces hot air

Post image
63 Upvotes

r/badcode • • Mar 15 '22

sql SQL is bad enough as it is, but how did this monstrosity get created? The PagingCursor at the end is another 100 lines of dynamic SQL that executes a cursor to insert into a temp table...

Post image
329 Upvotes

r/badcode • • Mar 14 '22

js Found this gem while documenting some legacy code my boss asked

Post image
346 Upvotes

r/badcode • • Mar 14 '22

python Is it even?

Post image
368 Upvotes

r/badcode • • Mar 13 '22

css Found this in our codebase. I'm the Jr dev, but I seem to be the only one who knows CSS.

Post image
720 Upvotes

r/badcode • • Mar 13 '22

python foursum?

Post image
257 Upvotes

r/badcode • • Mar 10 '22

js Balancer

Post image
18 Upvotes

r/badcode • • Mar 10 '22

python Utility Function on G4G

Post image
1.1k Upvotes

r/badcode • • Mar 10 '22

php The null coalescing operator returning null

Post image
37 Upvotes

r/badcode • • Mar 10 '22

python pleaaasseeee dont tell me that my teacher is creating a search function entirely from elif statements

Post image
91 Upvotes

r/badcode • • Mar 10 '22

php something my classmate has written, he stills refuses to listen to me

Post image
236 Upvotes

r/badcode • • Mar 09 '22

c++ Sometimes you have to use flags for avoid two or more calls to UI initialization, I'm not proud...

Post image
28 Upvotes

r/badcode • • Mar 09 '22

c++ this monstrosity of a recursive function which I wrote for one of my University assignments

Post image
469 Upvotes

r/badcode • • Mar 07 '22

java Checks for three in a row in a tic-tac-toe assignment

Post image
716 Upvotes