logoalt Hacker News

gwbas1ctoday at 1:09 PM2 repliesview on HN

> Hardcoded feature flags ... start with a simple JSON file

Any configuration read out of a JSON file is not hardcoded. Hardcoded means you need to recompile to change it.

(And yes, hardcoded, as in flags set with #define or equivalent, are totally fine depending on what you're doing.)


Replies

odyssey7today at 1:13 PM

Depends on how you deploy. If changing it in prod requires a PR merge and a release approval, I’d consider that pretty hardcoded.

kalcodetoday at 1:12 PM

That's a bit too rigid of a definition. Just means it requires a code update to change it, that's hardcoded.

show 1 reply