footgun

Language: en

Meaning: (programmingslang,humorous,derogatory)Anyfeaturelikely to lead to the programmer or usershooting themself in the foot.2015, Kyle Simpson,You Don't Know JS: Async & Performance, O'Reilly Media,→ISBN:This is afootgun! 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,→ISBN, page262: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.2021, Joseph Edmonds, Lorna Jane Mitchell,The Art of Modern PHP 8, page295:Let's have a look at one of the ways a service locator can become afoot gun. We're going to look at the anti-pattern of using the DI container directly in your code, thereby breaking inversion of control and generally shooting yourself in the foot.; by extension, generalised from (1.):An opportunity or object that allows the unfortunate to mostly figuratively but sometimes literally shoot themselves in the foot. A less obvious footgun may be apitfall (1.).

Examples:Note: the examples for non latin scripts have a high likelihood of mistakes, we do not own any of this data and it is sourced from Wiktionary, the NLLB database and Opensubtitles. Please help us improve this by contributing correct examples. We will be working to fix this issue over time however it is a bigger issue due to the the difficulties in dealing with non latin scripts and grammatical structures(non-romantic/european languages have lower resources as well ).

Validation Count: 0

Sourced from Wiktionary