Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1852

Cargo Cult Programming

Cargo Cult Programming
CreateHigh supportDesign Thinking
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Cargo cult programming is a style of computer programming characterized by the ritual inclusion of code or program structures that serve no real purpose. Cargo cult programming is symptomatic of a programmer not understanding either a bug they were attempting to solve or the apparent solution (compa…

Definition

Refers to programmers who blindly copy and paste code snippets from the internet or adopt a design pattern without understanding the underlying principles, simply because it 'seems to work' or 'big companies use it'. Scaffold use: Criticize blind imitation. This is an engineering practice without soul. It reminds us that when solving problems, we must understand 'why it works' rather than merely imitating 'how it works'.

How to use

Criticize blind imitation. This is an engineering practice without soul. It reminds us that when solving problems, we must understand 'why it works' rather than merely imitating 'how it works'.

Mechanism

Refers to programmers mechanically imitating seemingly effective code patterns or rituals (such as writing useless comments, copy-pasting templates) without understanding, yet failing to achieve the expected results. Its essence is that form replaces causal understanding, derived from the metaphor of Pacific island natives imitating American military rituals to pray for cargo to arrive during World War II.

Practice

In progress 0/1

Practice this model in one real situation:

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

Cases

  • A team forces the addition of verbose but uninformative logs in every commit, mistakenly believing it improves quality. Someone copies a complex macro but never calls it, claiming 'it might be useful later'.

Common pitfalls

  • Assuming that following a checklist of best practices equates to mastering engineering methods. Neglecting to question 'why it works', treating process symbols as capability itself.
Sources

Source support: Explicit

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

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

RELATED MODELS