If you think about it, all odd numbers contain an 'e', so here is an implementation of isEven in a whopping O(1)
https://redd.it/tp3s1s
@r_badcode
https://redd.it/tp3s1s
@r_badcode
Boss asked me to approve his pull request... looks good to me. Approved!
https://redd.it/tt2tkc
@r_badcode
https://redd.it/tt2tkc
@r_badcode
in a homework were they ask to make a func that return 3 numbers from highest to lowest. (For some reason for loops and such are not permited)
https://redd.it/tss6a6
@r_badcode
https://redd.it/tss6a6
@r_badcode
My team has the worst data organization methods. We have array containing array containing array and so we wrote this down today....
https://redd.it/ttpryc
@r_badcode
https://redd.it/ttpryc
@r_badcode
My interpretation of MS Team's brilliant file upload process that drives me crazy
https://redd.it/twejdj
@r_badcode
https://redd.it/twejdj
@r_badcode
found in r/ProgrammerHumor, credits to u/Volume-Straight. (idk if it is a repost). noscript: "Brother is learning to code. His “anti-hacking” noscript had me dying."
https://redd.it/tx0o4y
@r_badcode
https://redd.it/tx0o4y
@r_badcode
Came across this in a machine learning lib, trying to find out how particular recall and precision scores were calculated - made me laugh: `if x != 4: x = 4`
https://redd.it/u25h8w
@r_badcode
https://redd.it/u25h8w
@r_badcode