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

Programmer Humor

23366 readers
1704 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
[–] Redkey@programming.dev 6 points 9 hours ago* (last edited 9 hours ago) (2 children)

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.

[–] UnrepentantAlgebra@lemmy.world 3 points 2 hours ago (1 children)

The obvious solution is to use Rust's upcoming "spaghetti checker" feature. Once the compiler decides that your code is too messy to be maintainable, it refuses to compile.

[–] dosuser123456@lemmy.sdf.org 1 points 1 hour ago

great, now the compiler wont let me modify my programs (i really should get better at coding because i seem to only know to do spaghetti)

[–] dosuser123456@lemmy.sdf.org 1 points 1 hour ago

thats exactly what the "you get the idea" line meant, i was only giving some examples because if i did itd be literally every language

(also modern c is spaghetti, but old c is even more. legacy code is spaghetti no matter the language)