Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1126

Big Ball of Mud

Big Ball of Mud
BusinessHigh supportManagement
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Spaghetti code is computer source code that encodes control flow that is convoluted, and therefore, hard to understand. Control statements direct program execution in ways that instead of having a quality of structure, resembles cooked spaghetti, twisted and tangled. The code tends to be hard to mai…

Definition

Refers to a software system that is chaotic, unstructured, spaghetti-like, and patched together. It is the natural state of unmanaged software development (the end point of entropy). Scaffold use: Identify decaying systems. When you find that the parts of an organization or system are highly coupled, where a change in one place affects everything else, and no one can clearly describe the overall architecture, it is a 'Big Ball of Mud'. At this point, patching is meaningless; you must consider rewriting or splitting.

How to use

Identify decaying systems. When you find that the parts of an organization or system are highly coupled, where a change in one place affects everything else, and no one can clearly describe the overall architecture, it is a 'Big Ball of Mud'. At this point, patching is meaningless; you must consider rewriting or splitting.

Mechanism

An anti-pattern in software architecture, referring to a system that is randomly assembled and lacks clear structure, like a 'Big Ball of Mud'. The mechanism is that short-term rushing and requirement drift cause module boundaries to dissolve, leading to loss of control over complexity.

Practice

In progress 0/1

Practice this model in one real situation:

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

Cases

  • A legacy system that has evolved over many years but no one dares to touch. A rapid prototype that goes live and then decays.

Common pitfalls

  • Rewriting from scratch (high risk). Refactoring without adding tests. Tolerating 'we'll fix it later'.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

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

RELATED MODELS