4 ms·
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. Wi
by usrbinbash 3y 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.
- lisasays 3y agoBut hey, it's serverless and scales to zero. And some guy banged it out over the weekend, which means he's a rock star.
- Tyr42 3y agoI usually hear lasagna code if it's got too many codes, and ravioli code if it's too packetized.
- grugagag 3y agoFirst time Im hearing of ravioly but I like the analogy
- throwuwu 3y agoLaying 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.
- grugagag 3y agoI 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…
- kaba0 3y agoAd 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.