foot·gun
/ˈfʊt.ɡʌn/ (FOOT-gun) noun informal
- A feature or API that makes it easy for users to hurt themselves by accident. A delete command that defaults to recursive with no confirmation is a footgun.
Origin
From the idiom 'shoot yourself in the foot'. Origin of the noun uncertain.
In practice
Make the dangerous path the explicit one: safe defaults, required flags for destructive actions, and types that reject bad combinations.
Say to your AI
Review this API for footguns: arguments that are easy to swap, defaults that are dangerous, and calls that succeed silently when misused.
In plain words
- easy to shoot yourself in the foot
- the API is easy to misuse
- one wrong flag deletes everything
See also pit of success friction make illegal states unrepresentable