Time offset detection that returns 0 when offset is dividable by 24. Found in production
https://redd.it/ruy5bk
@r_badcode
https://redd.it/ruy5bk
@r_badcode
I was wondering why Exceptions were not stopping the execution (production code of AI Company with 200+ employees)
https://redd.it/rv43je
@r_badcode
https://redd.it/rv43je
@r_badcode
This is what happens when you've been coding for hours and the deadline is tomorrow
https://redd.it/rv9vn2
@r_badcode
https://redd.it/rv9vn2
@r_badcode
Programing teacher not only refuses to acknowledge the built-in function max, but also overwrites it.
https://redd.it/rxfq9x
@r_badcode
https://redd.it/rxfq9x
@r_badcode
My super-efficient sorting algorithm from a few years ago. wordFreq is a dict that contains all the words from a text file and how many times they occur. I learned later that this is basically insertion sort.
https://redd.it/rz8k62
@r_badcode
https://redd.it/rz8k62
@r_badcode
I don't think that's how environment variables are supposed to work.
https://redd.it/s0mmhz
@r_badcode
https://redd.it/s0mmhz
@r_badcode
I don't know how to explain the bad part here, but some might get it.
https://redd.it/s0q7zs
@r_badcode
https://redd.it/s0q7zs
@r_badcode
I present the objectively best way to setup braces: In a massive block at the bottom
https://redd.it/s0vf4t
@r_badcode
https://redd.it/s0vf4t
@r_badcode