this post was submitted on 20 May 2025
199 points (94.2% liked)

Programmer Humor

23417 readers
1358 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
 

who wants pasta in their computer?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] stingpie@lemmy.world 8 points 3 days ago (4 children)

After reading a lot of comments in this thread, I'm not sure I know what spaghetti code is. I thought spaghetti code was when the order of execution was obfuscated due to excessive jumps and GOTOs. But a lot of people are citing languages without those as examples of spaghetti code. Is this just a classic "I don't like this programming language, and I don't know much about it." Or is there something I'm missing?

[โ€“] Endmaker@ani.social 8 points 3 days ago* (last edited 3 days ago)

Spaghetti is all messy and tangled up; spaghetti code is the same.

when the order of execution was obfuscated due to excessive jumps and GOTOs

That's one way to make your code messy and thus achieve spaghetti code.

In general, when some code is very poorly written, it becomes spaghetti code.

load more comments (3 replies)