Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1358

Lasagna Code

Lasagna Code
BusinessHigh supportManagement
Included
account_tree

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

psychology

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

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Spaghetti_codeZH · Explicit
    verified

RELATED MODELS