100
Shearing point (thelemmy.club)
submitted 12 hours ago by xia@lemmy.ca to c/programmerhumor@lemmy.ml

...or you can just vibe-code-it back into existence wherever you need it.

you are viewing a single comment's thread
view the rest of the comments
[-] qprimed@lemmy.ml 7 points 12 hours ago

in-line all your code and avoid the linker :-)

[-] haerrii@feddit.org 8 points 10 hours ago

They played us absolute fools. int main() is the only function ever needed aside from loops, if you can't implement what you need, then your project is of the devil.

[-] SparroHawc@piefed.world 7 points 9 hours ago

IF and GOTO are the only flow control we need; everything else is for cowards.

[-] panda_abyss@lemmy.ca 1 points 6 hours ago

Goto is surprisingly readable.

Loops don’t get labels. Labels are awesome. Sprinkle in some goto so you can use labels.

In languages like python inside a loop you have if condition: continue. Except continue means don’t continue, you skip to the next iteration without breaking the loop. That’s confusing as heck (and what is else doing on loops Guido???). if condition: goto loop is more honest.

I also like that goto is “take my stack frame and run that procedure instead”, which is kind of unique and cool in its own way, and impossible to do with most lexical scoping systems. It’s reliable zero cost function calling (if you can make your optimizer happy).

Everyone loves repeating “goto considered harmful” and “numbering should start at zero”, but nobody critically thinks about those things. Rules are made to be broken.

~Oh, and the numbering argument is totally wrong… using one notation to advocate for another is silly. Offset from zero, but index by domain logic!~

[-] SparroHawc@piefed.world 4 points 6 hours ago

Goto CAN be readable, it's true.

The problem is that it's easy to make code that is LESS readable; in order to prevent horrible unmaintainable spaghetti, it is forbidden nearly everywhere. A lot of coding 'rules' are really just ways to try to cut down on stupid coding practices by greenhorns and enforce code maintainability.

[-] panda_abyss@lemmy.ca 3 points 5 hours ago

It’s a blessing and a curse. I’ll give you that.

[-] qprimed@lemmy.ml 3 points 9 hours ago

spaghetti is delicious for a reason.

this post was submitted on 26 May 2026
100 points (99.0% liked)

Programmer Humor

42262 readers
218 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS