r/badcode • • Apr 06 '21

python when i started programming.... there is thousand of stuff like that

Post image
1.3k Upvotes

65 comments sorted by

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)

2

u/Loui-_- Apr 06 '21

Yeah just started c++ quickly went full graphic for that reason

7

u/chronos_alfa Apr 06 '21

Jesus, I completely forgot about that, thanks for reminding me how bad Java is

529

u/MattDiazz Apr 06 '21

That is known as the michael jackson debugging.

36

u/[deleted] Apr 06 '21

Now too figure out how to make my Visual Studio "Heehee" when my build succeeds...

112

u/[deleted] Apr 06 '21

Instead of print(), it's sing()?

3

u/reddit_time_waster Apr 07 '21

I'm pretty sure that was a reference to the "hehe"

8

u/Pylitic Apr 06 '21

Glad I'm not the only one who read it like that.

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 = 0

I'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

u/[deleted] Apr 06 '21

good b o t

87

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Apr 06 '21

beep

b o o p

:)

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

u/[deleted] Apr 07 '21

there are* thousand

1

u/Loui-_- Apr 07 '21

yeaah sry i'm learning english

113

u/Spynder shameless stealing content to r/YandereTechnique Apr 06 '21

hehe widht

2

u/Rudxain let let.let = 'let' Apr 08 '21

[Insert Meme Man]

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

u/kaputxalops Apr 06 '21

makes sense, thanks! i hope i don't forget that immediately.

7

u/grimzorino Apr 06 '21

“hait”

5

u/reverendsteveii Apr 06 '21

"haitgh"

7

u/MyAntichrist Apr 06 '21

Oh, a reverse Phteven?

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

u/CorrenteAlternata Apr 07 '21

eighth doesn't look like a real word at all with that hth nonsense

5

u/angry_mr_potato_head Apr 06 '21

Can't mess it up if you make an ambiguously short abbreviation!

5

u/Gydo194 Apr 06 '21

Every. Single. Time.

65

u/PointlessAza Apr 06 '21

hehe = 0

48

u/myblindy Apr 06 '21

This entire code is not very hehe.

48

u/Ochidi Apr 06 '21

When you hear a good joke:

hehe = 1

7

u/Prestoupnik Apr 06 '21

This code is the joke, hehe

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

u/GhostDogTheBand Apr 06 '21

if (hehe == 0) {cout << “annie is not okay”;}

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

u/Prom3th3an Apr 07 '21

Bars? Of music, or on a cage?

1

u/McJagged Apr 07 '21

Vars, good catch

9

u/bertholt2 Apr 06 '21

Those are very good variable names

13

u/jarfil Apr 06 '21 edited May 12 '21

CENSORED

3

u/DoctaGrace Apr 06 '21

Creative variable naming, I respect it.

1

u/shizzy0 Apr 06 '21

Is this the poor man’s resumable continuation?

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

u/LoneFoxKK Apr 06 '21

Hehe tte nandayo

1

u/[deleted] Apr 07 '21

Congratulations, you've invented break!

1

u/Alexith Apr 07 '21

hehe and fifi code

1

u/MrVesPear Apr 07 '21

That’s been me for years and I don’t plan on changing lol

1

u/burlyginger Apr 06 '21

What have you done....