Honestly i have no idea why i did this, it serves absolutely no purpose
https://redd.it/107g28g
@r_badcode
https://redd.it/107g28g
@r_badcode
quite literally accidentally found a sql injection at the European Union 's website.
https://redd.it/107uhrl
@r_badcode
https://redd.it/107uhrl
@r_badcode
I simplified it a little - but this is what we have in production. „You guys heard about those 'backups'? Let‘s do one too!“
https://redd.it/108bg99
@r_badcode
https://redd.it/108bg99
@r_badcode
It's so ugly but it works! Object with month name as key and array of first day and last day of that month.
https://redd.it/109a35l
@r_badcode
https://redd.it/109a35l
@r_badcode
My classmate told me his code wasn't very clean... But this one still surprised me
https://redd.it/10dlss3
@r_badcode
https://redd.it/10dlss3
@r_badcode
Python oneliners are awesome! (Someone explain me what that code is doing)
https://redd.it/10enxpp
@r_badcode
https://redd.it/10enxpp
@r_badcode
Honestly I though I was pretty smart, but someone told me this is honestly r/badcode material.....
https://redd.it/10esl87
@r_badcode
https://redd.it/10esl87
@r_badcode
Went ahead to check the line blame and found that these 2 lines were committed up on the same commit. The commit just commented the top line and added the bottom line. WHICH IS THE SAME THING.
https://redd.it/10f4qyd
@r_badcode
https://redd.it/10f4qyd
@r_badcode
In what real life situation would you ever be presented with code formatted like this? (See comment for my rant)
https://redd.it/10ffckg
@r_badcode
https://redd.it/10ffckg
@r_badcode