Cargo Cult Programming

dead-metaphor Social BehaviorSoftware Programs

Categories: software-engineeringcognitive-science

What It Brings

During World War II, Pacific Islanders observed that military airstrips attracted planes carrying valuable cargo. After the war, some communities built ritual airstrips — control towers from bamboo, headphones from coconut shells, landing lights from torches — and waited for the planes to return. The form was reproduced perfectly. The underlying mechanism was entirely absent.

This maps onto programming with surgical precision: copying code patterns without understanding why they work.

Key structural parallels:

Where It Breaks

Expressions

Origin Story

Richard Feynman introduced the term “cargo cult science” in his 1974 Caltech commencement address (later published in Surely You’re Joking, Mr. Feynman!). Feynman used it to describe research that has the form of science — hypotheses, experiments, publications — but lacks the substance: rigorous controls, honest reporting, genuine falsifiability. The metaphor was irresistible: it named a failure mode that everyone recognized but nobody had articulated.

The extension to programming followed naturally. Eric Lippert (Microsoft developer and blogger) and others applied “cargo cult programming” specifically to coding practices in the early 2000s. The term found fertile ground in a community where copying code from the internet was becoming the dominant mode of development, and where frameworks were growing complex enough to make cargo cult behavior the path of least resistance.

References

Related Mappings