CARD NEWS · Development

Feature Flag · 4 cards

Four cards for social posts, teaching materials and presentations. Capture the screen or print to a PDF.

1/4
Development

Feature Flag

A feature flag (also called a feature toggle) is a switch that turns a feature on or off without deploying new code. Pete Hodgson's article on martinfowler.com describes it as a technique that lets teams change system behavior without changing code, and groups flags into four categories by purpose: release, experiment, ops and permissioning.[1] Teams use flags to ship unfinished features in a hidden state, to roll a feature out to a percentage of users or a specific group, and as a kill switch that turns off a single feature when something goes wrong.[1][3] The trade-off is cost: every flag adds conditional logic and more code paths to test.[1]

2/4
In simple terms

An easy way to understand

Think of the light switches in each room of a building. Instead of rebuilding the whole building to open a new room, you finish the room in advance and flip its switch later. If something goes wrong, you flip the switch back off.

3/4
Where it is used

Who uses it, and when?

[5] Result: The author's own view is that feature flags account for "70% or more" of what made daily deployment possible.

4/4
Learn more

ai.rookienote.com
/en/term/feature-flag

RookieNote
← Read the full entry

Capture these cards or print them to a PDF.