2 ms·
One situation that comes to mind is configuration of applications on containers using environment variables. It's extremely valuable to be able to just `grep -
by guhcampos 2y ago
One situation that comes to mind is configuration of applications on containers using environment variables.
It's extremely valuable to be able to just `grep -r PREFIX_` on a codebase and be able to visualize all possible configuration values for that application.
This is encouraged by some frameworks like Django, where you are expected to list all the configuration values in a `settings` module, but is not standard for `viper`, `click` and `pydantic-settings`, which try to be too smart and auto-generate the variable names for you. It's one of these cases where "modern" frameworks and applications try to save a minuscule amount of work by automating some task, but end up reducing the maintainability of the code over time.