3 ms·
> The opposite of spaghetti code is lasagna code, software that follows the single responsibility principle and composed of multiple layers of abstraction This
by erikpukinskis 10y ago
> The opposite of spaghetti code is lasagna code, software that follows the single responsibility principle and composed of multiple layers of abstraction
This is where I think they lose the scent. Layers of abstraction are about sharing responsibilities. If everything has a single responsibility then there are no layers at all. A layer is fundamentally a thing with many responsibilities, because it must serve as the entire universe for the code above it.