Lasagna Code
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
Refers to over-layered architecture. Although the layers are clear (presentation, business, data...), modifying a simple feature requires penetrating every layer and modifying files in each layer, which is extremely cumbersome.
SCAFFOLDING EFFECT
Reduce cognitive load
Beware of over-abstraction. If your company has too many reporting levels or processes are too rigid, you are in the 'Lasagna Code dilemma'. Sometimes, flattening (reducing layers) is more important than structuring.
Anchor fast decisions
Refers to a system being divided into too many layers (presentation, business, data...), each with a single responsibility but with severe vertical coupling overall. The mechanism is that 'decoupling for the sake of decoupling' creates new coupling—modifying an end-to-end feature requires synchronized changes in every layer's files, with long call chains and difficult troubleshooting.
MINIMUM ACTION
In progress 0/4Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Spaghetti_codeverified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS