DEV Community

Discussion on: Using feature flags for client demos and simulating complex scenarios

Collapse
 
bgadrian profile image
Adrian B.G.

Ah that reminds me, I should write about the tech and product benefits of having feature flags and abtests.

The downside is complexity, a lot. Each new flag will add an exponential complexity on all related non exclusive features, ex
One button, 2 positions, 2 colors

  1. Color A in position X
  2. A in Y
  3. B in X
  4. B in Y If you add a shade color the number of possible user experiences triples (no shade, shade A, shade B). This means double the testing, metrics ...

So do not abuse this function, clear the not used flags as fast as possible.

Collapse
 
kylessg profile image
Kyle Johnson • Edited

Awesome I'll be sure to read it if you post it on here!

Yeah totally agree with this, would only use the config side (colours etc) on something meaningful.

Also, I tend to slowly remove flags as they become more stable/mature. Having stagnant flags is definitely something to avoid.

Collapse
 
bgadrian profile image
Adrian B.G.

I kind already talked about them, but only from the A/B tests perspective. There are a lot of other good usages for flags, like soft rollouts/releases, dual writes and so on.

Thread Thread
 
kylessg profile image
Kyle Johnson • Edited

Yeah totally, I was genuinely surprised how using them totally changed my dev experience at times especially being able to do smaller releases