this is supposed to be an ad for a python course. no indentation, a random semicolon, int(block / 3) instead of block // 3, and absolutely crippled controlflow
https://redd.it/uc6d3c
@r_badcode
https://redd.it/uc6d3c
@r_badcode
Found this guy on codewars. The kata was to convert seconds in year, months, days and so on... Link if you want to see all the code: https://www.codewars.com/kata/reviews/550b304659513854f3000f52/groups/5e10d378bb266200013d5af5
https://redd.it/ucjpm0
@r_badcode
https://redd.it/ucjpm0
@r_badcode
Looks like Python List Comprehension-phobia is a thing. This is a real commit by a teammate.
https://redd.it/ufihe1
@r_badcode
https://redd.it/ufihe1
@r_badcode
Because while(true) would've been too boring - spotted in a GH repo with over 7k stars
https://redd.it/ug63l1
@r_badcode
https://redd.it/ug63l1
@r_badcode
Found in my own code from less than a week ago. I don't know what I was thinking...
https://redd.it/ujj3sa
@r_badcode
https://redd.it/ujj3sa
@r_badcode
Nein, nein, nein, nein, nein! It's the second time I see ACHTUNG in an NLP library. Either developers have been playing too much Wolfenstein, or all the multilingual datasets made them confuse German for English. Code is redacted.
https://redd.it/ujj9xg
@r_badcode
https://redd.it/ujj9xg
@r_badcode
I just wrote this gem and cant withhold it from you. Although I'm pretty embarrassed of it..
https://redd.it/ukb95v
@r_badcode
https://redd.it/ukb95v
@r_badcode
Will you find out why is my LED strip wouldn't go around itself properly?
https://redd.it/uklqdg
@r_badcode
https://redd.it/uklqdg
@r_badcode
Reread code I wrote in a module I created recently for a uni project…
https://redd.it/upp7n9
@r_badcode
https://redd.it/upp7n9
@r_badcode