pleaaasseeee dont tell me that my teacher is creating a search function entirely from elif statements
https://redd.it/tb18qe
@r_badcode
https://redd.it/tb18qe
@r_badcode
Someone in my CS class made a for loop to get the length of an array
https://redd.it/tctaj4
@r_badcode
https://redd.it/tctaj4
@r_badcode
Found this in our codebase. I'm the Jr dev, but I seem to be the only one who knows CSS.
https://redd.it/td3gha
@r_badcode
https://redd.it/td3gha
@r_badcode
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...
https://redd.it/texndw
@r_badcode
https://redd.it/texndw
@r_badcode
I didn't want to use "if" statements, but then I started laughing when I kept losing my places while coding
https://redd.it/tf96fz
@r_badcode
https://redd.it/tf96fz
@r_badcode
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
https://redd.it/tgg0ef
@r_badcode
https://redd.it/tgg0ef
@r_badcode
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
https://redd.it/ti93sh
@r_badcode
https://redd.it/ti93sh
@r_badcode