this post was submitted on 24 Oct 2025
55 points (93.7% liked)

Programmer Humor

27011 readers
1175 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

OK, first of all, I am not a programmer. (yes, I heard the "thank god") Perhaps I could make the top example simpler.

But anyway, I kind of like goto too much. I find it more intuitive to just jump around and re-use parts rather than think about how to do loops without too much nesting.

In high school, we only did Python. I really wanted to do goto in Python as well, but all I found was this April fools' goto module.

Now in college we're starting with C, and I am starting with Bad Habits^TM^.

Anyway, tagging every line was BASICally just for the joke, but it is useful to just jump to any random line.

top 10 comments
sorted by: hot top controversial new old
[–] crimsonpoodle@pawb.social 1 points 2 minutes ago

Gotos are cool, it’s the way assembly works, if your mind likes them then more power to you. But if you work on teams then it’s a nogoto. Most of the functionality can be replaced with things that most people find easier. Just enjoy your time with and don’t ever is Kotlin. Fucking let me fucking return. I see them now those snooty opinionated safety fanatics “ooooh it will be so elegant in the closures the last value will be the return” bs.

[–] somerandomperson@lemmy.dbzer0.com 1 points 55 minutes ago

Functions to the rescue!

[–] tynansdtm@lemmy.ml 3 points 1 hour ago

I'm glad you included the April Fool's Day link. Comefrom is the worst thing I've ever seen.

[–] aaaaaaaaargh@feddit.org 11 points 11 hours ago (1 children)

That is until you're doing something more complex, then goto becomes no-go.

[–] 30p87@feddit.org 3 points 11 hours ago (2 children)

Except for error handling, perhaps

[–] yetAnotherUser@lemmy.ca 1 points 17 minutes ago

That reminds me of this video

[–] aaaaaaaaargh@feddit.org 4 points 11 hours ago

Not even that. Switching code flows means potential void of state integrity. Error handling should either terminate discarded states or not interfere at all.

By the way, imagine smart pointers with goto jumps.

[–] p_consti@lemmy.world 4 points 9 hours ago

Got a bit too much into BASIC?

[–] myszka@lemmy.ml 22 points 17 hours ago (1 children)

You should try assembly. Pure goto hell

[–] notabot@piefed.social 13 points 16 hours ago

It's always fun to get your offset slightly wrong, and jump into the middle of an instruction.