Skip to content

Footgun

Easy — everyone uses thisGeneral Dev

ELI5 — The Vibe Check

A feature or tool that makes it really easy to shoot yourself in the foot — meaning it's easy to make a mistake that hurts you. Like a function that deletes everything if you forget one argument. Languages and APIs can be full of footguns.

Real Talk

A footgun is a programming feature, API, or tool that is prone to misuse, leading to bugs or unintended consequences. JavaScript's == (loose equality) and PHP's type juggling are classic examples of language footguns.

Show Me The Code

// JavaScript footgun:
0 == ''    // true 🤯
0 == '0'   // true 🤯
'' == '0'  // false 🤯

// Use === instead!

When You'll Hear This

"That API is a total footgun — one wrong parameter and it wipes the database."

Made with passive-aggressive love by manoga.digital. Powered by Claude.