Get the latest tech news

It's OK to hardcode feature flags


The safest and most reliable way to deal with feature flags is to hardcode them

From a development lifecycle perspective, they introduce non-deterministic behaviour, and make it harder to reason about the code. In any case, adding more moving parts to any software system should always be given scrutiny to see if it’s actually necessary and whether the risks it introduces are worth the problems being solved. Simply start with a simple JSON file, read it in at application startup, and use it to control the visibility of features.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of feature flags

feature flags

Related news:

News photo

Show HN: Feature Flags Backed by Git

News photo

Feature flags in Bazel builds

News photo

Harness snags Split.io as it goes all in on feature flags and experiments