3 ms·
> 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 t
by gwbas1c 1mo ago
> 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.)
- kalcode 1mo agoThat's a bit too rigid of a definition. Just means it requires a code update to change it, that's hardcoded.
- jollyllama 1mo agoIt depends if the JSON file is in source control, or if it's an environment file.
- odyssey7 1mo agoDepends on how you deploy. If changing it in prod requires a PR merge and a release approval, I’d consider that pretty hardcoded.