3 ms·
> want to load config from environmental variables or centralized config management tools. I am not sure I understand this, I have a feeling you are mixing "co
by sly010 8y ago
> want to load config from environmental variables or centralized config management tools.
I am not sure I understand this, I have a feeling you are mixing "configuration" with "loading the configuration" here which is a slippery slope.
> you miss out on the benefits of your first language, like static typing
Again, you are confusing configuration with writing your application. You have a point here if you are your applications only user (e.g. server apps) and you have to recompile anyway.
> Third, you can do things like merging environment-specific configs into a base config
Again, I am not sure if your config file is the place to do that. I would argue that your configuration should be different in different environments instead of having a smart configuration that recognizes the environment and does a bunch of different things.
> or programmatically filling in an array of values explicitly and in a way that's easy to follow.
This is also a good point and is definitely a place where JSON falls short.
Good stuff.