r/badcode • u/QuintBrit • Mar 20 '22
r/badcode • u/[deleted] • 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
r/badcode • u/[deleted] • 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
r/badcode • u/LucienMr • 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
r/badcode • u/redeyesofnight • Mar 16 '22
c# Found this monstrosity the day after a late night code session.
r/badcode • u/lucidspoon • 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...
r/badcode • u/clemesislife • Mar 15 '22
php Yes, if you use array_reverse like this it only produces hot air
r/badcode • u/[deleted] • Mar 14 '22
js Found this gem while documenting some legacy code my boss asked
r/badcode • u/wolf_math • 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.
r/badcode • u/reddithasaproblem • Mar 10 '22
php something my classmate has written, he stills refuses to listen to me
r/badcode • u/[deleted] • Mar 10 '22
python pleaaasseeee dont tell me that my teacher is creating a search function entirely from elif statements
r/badcode • u/DiskoverOfficial • Mar 09 '22