footgun

English

Etymology

foot + gun

Noun

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.
This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.