Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1355

Ravioli Code

Ravioli Code
BusinessHigh supportManagement
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

Opposed to 'spaghetti code' (chaotic and tangled). Refers to a structure composed of many small, loosely coupled, self-contained objects (like individual dumplings). This is often the ideal state for microservices architecture.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

Pursue high cohesion and low coupling. Each module (dumpling) has rich filling inside (cohesion), and the outside is not sticky (low coupling). You can eat one at a time, and if one is bad, it doesn't affect the whole plate.

anchor

Anchor fast decisions

Ravioli code refers to a system composed of a large number of small, well-encapsulated independent modules, but due to excessive fragmentation, it is difficult to grasp the overall context. It is the opposite of spaghetti code and is another extreme.

MINIMUM ACTION

In progress 0/1

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