Skip to content

Instantly share code, notes, and snippets.

View sprusr's full-sized avatar
😸
the game

Scott Street sprusr

😸
the game
View GitHub Profile
@threepointone
threepointone / feature-flags.md
Last active May 24, 2023 11:03
Feature flags: why, how, all that

(I'm enjoying doing these raw, barely edited writeups; I hope they're useful to you too)

Feature flags

This is my own writeup on feature flags; for a deep dive I'd recommend something like Martin Fowler's article (https://martinfowler.com/articles/feature-toggles.html).

So. Feature flags. The basic idea that you'll store configuration/values on a database/service somewhere, and by changing those values, you can change the user experience/features for a user on the fly.

Let's say that you're building a new feature, called 'new-button' which changes the color of buttons, which is currently red, to blue. Then you'd change code that looks like this -

Keybase proof

I hereby claim:

  • I am hgat on github.
  • I am hgat (https://keybase.io/hgat) on keybase.
  • I have a public key ASCnAWz5ly8BK748OBKtO-SceKaSH7I5sqzTGj38aiSpWAo

To claim this, I am signing this object: