Hacker News new | ask | show | jobs
by usrbinbash 1119 days ago
The thing is, even if its spaghetti, I can follow the individual noodles. I can carefully pull them out of the pile and lay them out all neat and separated.

With "cleverely abstracted" code, I cannot do that. Because there are no noodles any more. There are small pieces of noodles, all in different sizes, spread out over 200 plates, that reside on 140 tables in 40 different rooms, some of which are in another building. And there are now 20 types of sauce, and 14 types of parmesan, but those are not neatly separated, but spread evenly all over everything, and so it all tastes awful. And each individual plate still manages to be spaghetti.

Okay, yes, I may have strechted out the food-analogy a bit.

But that's pretty much how I feel when digging through over-engineered codebases.

5 comments

I usually hear lasagna code if it's got too many codes, and ravioli code if it's too packetized.
First time Im hearing of ravioly but I like the analogy
But hey, it's serverless and scales to zero.

And some guy banged it out over the weekend, which means he's a rock star.

"we can never let him go, we'd be lost without him!"
Sounds like we worked at the same place
Nobody else can match (understand) his velocity. He's the best.
I loved the “I can follow the individual noodles”. Yes, sometimes even simple spaghetti is better than spagetti tower lassagnia but it’s still too slippery to reason through. But I do get the part about being able to at least grasp it, slippery as it is…
Ad absurdum then you can program in assembly just fine, right? Can I dump you chrome’s assembly output? It’s all trivial, just movs and whatnot.
Laying the spaghetti out neatly is, I think, the correct level of abstraction. Identify each noodle, separate it, put it in the right place and make sure they’re all in the correct order. You don’t want noodles zig zagging and crossing over each other everywhere. You want nice clean lines of noodles you can easily follow from start to end and as few of them as possible.