3 ms·
The most common problem that I've encountered with using environment variables for configuration is that developers often add them ad-hoc, in the module where t
by BerislavLopac 6y ago
The most common problem that I've encountered with using environment variables for configuration is that developers often add them ad-hoc, in the module where the configuration is needed, making it impossible to have a clear idea of all the configurable options in a program.
The solution is not to get rid of env vars, but to have a mechanism that centralises the confirguration in one place; this way all the options are easy to locate, and they can be defined in multiple ways.
Shameless plug, FWIW: figga is my humble contribution to this area for Python: https://github.com/berislavlopac/figga https://github.com/berislavlopac/figga