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.
Or read this on Hacker News