footgun

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Etymology[edit]

foot +‎ gun

Noun[edit]

footgun (plural footguns)

  1. (programming slang, humorous, derogatory) Any feature whose addition to a product results in the user shooting themselves in the foot.
    • 2015, Kyle Simpson, You Don't Know JS: Async & Performance, "O'Reilly Media, Inc." (→ISBN)
      This is a footgun! ES6 should have specified that it either fulfills, rejects, or just throws some sort of synchronous error. Unfortunately, because of precedence in Promise libraries predating ES6 Promise, they had to leave this gotcha in there, []
    • 2017, Evan Burchard, Refactoring JavaScript: Turning Bad Code Into Good Code, "O'Reilly Media, Inc." (→ISBN), page 262:
      If it is what Douglas Crockford might call a “footgun,” then at the very least, condoning and standardizing the “footwounds” will make problems easier to search for and fix.