Comment

Comment by daddykotex

I'd like to know how you handle feature flags in a full feature web applications.

In my experience, it's relatively easy and clean to work with `if(feature) this else that` in a simple backend application (a service that pulls from a queue and maintain a state, for example).

The problem arise when you start working with more complex applications. Specifically application with complex UI where you have to check the state of the flag at multiple different places in the code. You end up adding branches all over the code, branches that will be removed once the feature is fully deployed and known to be correct.

It adds a lot of overhead, the code is less readable.

There must be a way to do implement feature flags in a smoother way.

parent daddykotex 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton