r/badcode • u/Loui-_- • Apr 06 '21
python when i started programming.... there is thousand of stuff like that
529
u/MattDiazz Apr 06 '21
That is known as the michael jackson debugging.
36
112
8
141
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Apr 06 '21
Image Transcription: Code
while fi:
hehe = 0
try:
w = int(input('widht :'))
except:
print('\n #############\n #VALUE ERROR#\n #############')
hehe = 1
if hehe == 0:
fi = False
hehe = 0I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
62
26
u/mirandanielcz Apr 06 '21
I will be here until you make a typo, then I will give you the whole traceback so you can debug your transcription.
am I funny? :(
Thanks for your service
12
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Apr 06 '21
Haha, I've made typos plenty of times before, so you never know when I might get a traceback. ;)
2
113
93
u/kaputxalops Apr 06 '21
I see I'm not the only one with problems writing width, height, weight and lenght.
41
u/jarfil Apr 06 '21 edited Jul 17 '23
CENSORED
73
u/kaputxalops Apr 06 '21
my point exactly
29
u/jarfil Apr 06 '21 edited May 12 '21
CENSORED
10
7
3
u/SuperSupermario24 while True: print("owo") Apr 06 '21
I don't have a lot of trouble with those words, but the word "eighth" fucks me up every single time.
2
5
5
70
65
48
19
11
u/kgro Apr 06 '21
And here I am, wondering about that stupid space before the semicolon and no space after…
7
u/KingRJ14 Apr 06 '21
while fi:
6
u/LeCrushinator Apr 06 '21
For a second I was wondering if it was some bastardization of a bash script.
7
u/pb1940 Apr 06 '21
Produces an error message looking like the marquee from the Rocky and Bullwinkle cartoon end credits... and in the next line, supplies its own laugh track.
7
5
u/McJagged Apr 06 '21 edited Apr 07 '21
I remember the good old days, self teaching programming in middle school, I would assign vars to random letters. My old code would be practically unreadable
2
9
4
3
2
2
1
1
u/shizzy0 Apr 06 '21
I’ve seen infinite loops where there are errors so it’s easy to jump into them with a debugger, but this is the first time I’ve seen, just give me a new value here.
1
1
1
1
1
1
1
13
u/Cmgeodude Apr 06 '21
Oh, Python.
I'm always envious of you who don't need to clear the buffered reader before accepting new input. I systematically forget and create fun infinite loops of error messages. Every. Damn. Time. (Java, mostly)