Glossary/Feature Flags
Technical Debt & Code Quality
2 min read
Share:

What is Feature Flags?

TL;DR

Feature flags (also called feature toggles, feature switches, or feature gates) are a software development technique that allows teams to enable or disable functionality without deploying new code.

Feature flags (also called feature toggles, feature switches, or feature gates) are a software development technique that allows teams to enable or disable functionality without deploying new code. They decouple deployment from release, letting teams deploy code to production while keeping new features hidden until they're ready.

Feature flags support several use cases: gradual rollout (enable for 5% of users, then 25%, then 100%), A/B testing (show different features to different user segments), kill switches (disable a broken feature without deploying), and trunk-based development (merge incomplete features that are flag-hidden).

The catch: feature flags are technical debt generators. Every flag adds conditional logic, increases testing complexity, and creates code paths that diverge. Old feature flags that are never cleaned up create "flag debt" — dead code wrapped in conditional logic that nobody is sure is safe to remove.

Best practice: treat every feature flag as temporary debt. Set an expiration date when the flag is created and clean it up immediately after the flag decision is finalized.

Why It Matters

Feature flags enable faster, safer deployments but create hidden technical debt if not managed aggressively. The most common mistake is creating flags without cleanup deadlines, leading to flag debt that compounds over time.

Frequently Asked Questions

What are feature flags?

Feature flags let you enable or disable functionality without deploying new code. They support gradual rollouts, A/B testing, and kill switches for broken features.

Are feature flags technical debt?

Yes — every flag is temporary debt. Best practice: set an expiration date when creating the flag and clean it up immediately after the feature decision is finalized.

Related Terms

Need Expert Help?

Richard Ewing is a Product Economist and AI Capital Auditor. He helps companies translate technical complexity into financial clarity.

Book Advisory Call →