wordfor

car·go cult pro·gram·ming

/ˈkɑːr.ɡoʊ ˌkʌlt ˈproʊ.ɡræm.ɪŋ/ (KAR-goh kult PROH-gram-ing) noun

Programmer folklore

  1. Copying code, patterns or rituals without understanding why they work, in the hope of getting the same results. Every service had the same 30-line retry wrapper, copied from one written for a different API with different failure modes. Cargo cult programming.

Origin

After Richard Feynman's 1974 Caltech commencement address 'Cargo Cult Science', on imitating the form of research without its substance.

In practice

Before copying a pattern, be able to say what problem it solves here. Code from an assistant deserves the same question.

Say to your AI

For each part of this snippet, explain what problem it solves in our code. Remove anything that doesn't solve one.

In plain words

  • copied from Stack Overflow without understanding
  • we do it because everyone does
  • nobody knows why this config is here
  • copy-pasted boilerplate

See also Chesterton's fence vibe coding load-bearing

Find similar words