1269
you are viewing a single comment's thread
view the rest of the comments
[-] MxM111@kbin.social 37 points 11 months ago
[-] Hoimo@ani.social 42 points 11 months ago

GOTO is the only thing that makes sense. It's the "high-level" concepts like for-loops, functions and list comprehension that ruined programming.

series.append(series[k-1]+series[k-2]) for k in range(2,5)]

RAVINGS DREAMT UP BY THE UTTERLY DERANGED

[-] ChickenLadyLovesLife@lemmy.world 15 points 11 months ago

I started coding with TurboBasic, which included the helpful innovation of GOTO {label} instead of GOTO {line number}, which allowed you to have marginally-better-looking code like:

GOTO bob
...
bob:
{do some useless shit}
return

which meant you essentially had actual, normal methods and you didn't have to put line numbers in front of everything. The problem was that labels (like variables) could be as long as you wanted them to be, but the compiler only looked at the first two letters. Great fun debugging that sort of nonsense.

[-] chfour@lemm.ee 5 points 10 months ago

WHAT DO YOU MEAN IT ONLY LOOKS AT THE FIRST TWO LETTERS WHAT

[-] Vilian@lemmy.ca 14 points 11 months ago* (last edited 11 months ago)

if goto make sense why don't you go to get some bitches

[-] newIdentity@sh.itjust.works 12 points 11 months ago* (last edited 11 months ago)

Because "get some bitches" is an invalid instruction

this post was submitted on 21 Sep 2023
1269 points (94.9% liked)

Programmer Humor

18890 readers
959 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 1 year ago
MODERATORS