this post was submitted on 20 May 2025
122 points (93.0% liked)

Programmer Humor

23366 readers
1268 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?

top 9 comments
sorted by: hot top controversial new old
[–] Redkey@programming.dev 3 points 2 hours ago* (last edited 2 hours ago)

Assembler, BASIC, Old C code, Cobol...

...Pascal, Fortran, Prolog, Lisp, Modern C code, PHP, Java, Python, C++, Lua, JavaScript, C#, Rust...

The list is infinite.

Show me a language in which it is impossible to write spaghetti code, and I'll show you someone who can't recognize spaghetti code when it's written in one of their favourite languages.

[–] peoplebeproblems@midwest.social 4 points 6 hours ago

Calling assembler code spaghetti isn't really that fair. I mean granted, everything ends up as "syscall" this and that, but it's still more like one long spaghetti noodle with some meatballs and sauce.

Old C code, written for like microelectronics suffers from it, sure.

But for that gud spaghetti you gotta getti the BASIC and Cobol programs. Thems is good spaghetti.

(And we're going to ignore python right)

[–] dosuser123456@lemmy.sdf.org 27 points 11 hours ago* (last edited 11 hours ago) (1 children)

ps: you know something you wrote is funny when taken out of context when someone screenshots it and after a while youre sent the screenshot of your message

[–] GandalftheBlack@feddit.org 17 points 10 hours ago

Back in the day I made a meme and put it on r/prequelmemes, and then my brother came through to my room a few hours later to show me this meme his friend had sent him... while I still had it open in gimp

[–] palordrolap@fedia.io 7 points 9 hours ago

For writing loops, many early BASICs had FOR/NEXT, GOTO [line] and GOSUB [line] and literally nothing else due to space constraints. This begat much spaghetti. Better BASICs had (and have) better things like WHILE and WEND, named subroutines (what a concept!) and egads, no line numbers, which did away with much of that. Unless you were trying to convert a program written for one of the hamstrung dialects anyway, then all bets are off.

Assembly style often reflects the other languages people have learned first, or else it's written to fit space constraints and then spaghettification can actually help with that. (Imagine how the creators of those BASICs crammed their dialect into an 8 or 16K ROM. And thus, like begetteth like.)

C code style follows similarly. It is barely concealed assembly anyway.

COBOL requires a certain kind of masochist to read and write. That's not spaghetti, it's Cthulhu's tentacles. Run.

[–] dohpaz42@lemmy.world 2 points 7 hours ago
  1. PHP
  2. JavaScript
  3. Bash
  4. C
  5. C++
  6. Java
[–] Endmaker@ani.social 3 points 8 hours ago

No need for all that.

You've just got to see my code.

[–] Eiri@lemmy.ca 4 points 10 hours ago

Sometimes I call my colleagues Italians 🤌

(None of them are from Italy, but that pasta!)

[–] henfredemars@infosec.pub 3 points 10 hours ago

Hey! My assembler is actually quite neat and compartmentalized.