this post was submitted on 17 Aug 2024
705 points (95.3% liked)

Programmer Humor

32316 readers
176 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CanadaPlus@lemmy.sdf.org 1 points 2 months ago (5 children)

Really? Doesn't that imply non-spaghetti brainfuck or assembly?

[–] NeatNit@discuss.tchncs.de 1 points 2 months ago (4 children)

Okay, I'll grant you brainfuck... As for assembly, I don't think it's inherently spaghetti. You can split it up into functions just like you can with an actual programming language. It's not impossible to make structured code.

That said, I never coded assembly outside of a mandatory university course, so I don't feel super confident in saying that. But I don't think of it as a programming language anyway - it's a 1:1 translation to/from machine code, and machine code isn't meant to make programming easy or scalable.

[–] CanadaPlus@lemmy.sdf.org 2 points 2 months ago* (last edited 2 months ago) (3 children)

And TBF neither is brainfuck. It was a bit of a cheeky example, but I wanted to really emphasise the range of differences between languages, and language-like things.

I have trouble believing that every language is exactly as easy to organise code in. I'll give you that it's possible in every language (and assembly) to organise code, but that's far too low a bar for practical measurement. Technically you can dig a ditch with a rusty spoon, too...

If Roller Coaster Tycoon had well organised code, that was down to way more effort being expended to make it that way.

[–] NeatNit@discuss.tchncs.de 1 points 2 months ago (1 children)

Oh, and if you really want a tough language, try Malbolge. The ratio of structured code to spaghetti code in that one is 0:1 - there are 0 instances of non-spaghetti code, and 1 instance of spaghetti code. I refuse to believe there's any more code other than the Hello World example.

[–] CanadaPlus@lemmy.sdf.org 2 points 2 months ago

You know, it must have taken some balls to publicly release a compiler you can't even test yourself.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)