Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1443

Voodoo Programming

Voodoo Programming
DecidemediumDecision Science
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Refers to programmers copying code without understanding the underlying principles, merely because "it seems to work this way" or "that's how the code is written online."

Definition

Refers to programmers copying code without understanding the underlying principles, merely because "it seems to work this way" or "that's how the code is written online." Once the code has problems, they can only rely on superstitious attempts (changing this, changing that) to fix it. Scaffold use: Be wary of knowing the how but not the why. In corporate decision-making, if a policy is implemented because "other companies do it this way" or "it's always been done this way," that is managerial voodoo programming. One must question the underlying logic.

How to use

Be wary of knowing the how but not the why. In corporate decision-making, if a policy is implemented because "other companies do it this way" or "it's always been done this way," that is managerial voodoo programming. One must question the underlying logic.

Mechanism

Refers to copying "working" code or practices without understanding the principles, and when problems arise, relying on blind trial-and-error (changing this, changing that) rather than identifying the root cause; essentially, it is superstitious engineering of "knowing the how but not the why."

Practice

In progress 0/4

Practice this model in one real situation:

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

Cases

  • Copying online scripts without understanding the parameters, so when bugs occur, you can only try random fixes; companies copying other companies' policies without considering their applicability.

Common pitfalls

  • Ending with "it works" as the goal—planting fragility and unmaintainability; using more trial-and-error to mask the lack of root cause.
Sources

Source support: Explicit

  • link
    catb.orghttp://catb.org/jargon/html/V/voodoo-programming.htmlZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS