Conversation

lizzy مثلية الله ☭ heart_lesbian_diagonal2 cuwu

we all know what spaghetti code is but i propose the term lasagna code for software that has so many useless layers of abstraction stacked on top of each other it becomes completely incomprehensible, not because it's chaotic but because you have to step into the trace god knows how many functions deep to get any idea of what it's actually doing
12
1
2
@sterophonick haha it's about the Borland Delphi runtime 💀
1
0
0
@lizzy the transmission bittorrent client
0
0
1
@kimapr @sterophonick burg.rawr x3 nuzzles pounces on you owo you're so warm
0
0
0

lizzy مثلية الله ☭ heart_lesbian_diagonal2 cuwu

Edited 1 year ago
re: ai slop
Show content
@sterophonick @kimapr because he asked for extra pickles but didnt get any
0
0
0
@lizzy the backtrace is 5 pages long....
1
0
1
@kirby rotating your monitor to be vertical so you can read the java stack traces properly
0
1
0
re: ai slop
Show content
@sterophonick @lizzy @kimapr pre burger: angery
post burger: happiness
1
0
1

@lizzy I do love lasagnas, but here are a few tips to turn that into spaghetti lasagnas: https://youtu.be/WrfOiv1QO70?si=eRp8Oa8sRen91G74

- use polymorphism as much as possible
- use state variables as abundantly as possible, and make sure their representation is both ambiguous and redundant
- hide all calls to standard libraries into custom functions
- be more efficient and never lose time finding proper variable/functions names
- make objects unusable by construction, let the user codebase adjust their internal state at a later point until it may - or may not - become usable
- now you're lost. Introduce a new wrapper layer to hide the mess.
- repeat

0
0
1
@lizzy I feel personally attacked by this post.
0
0
1

@lizzy I increasingly feel like spaghetti and lasagna code are two ends of a spectrum and there is a small window in between where code is actually readable and efficient

0
0
1
https://en.wikipedia.org/wiki/Mille-feuille might be another term to consider

it sucks that both refer to delicious food, though

it distracts from bringing the technical difficulties to mind

this reminded me of the conversation between shrek and donkey about layers: onions have layers, but so do cakes 🙂
0
0
1