2021. március 25., csütörtök

Global variable badness, preference for environment variables, and ...

... just theoretically as I like the taste :)

The twelve-factor app stores config in environment variables (often shortened to env vars or env). Env vars are easy to change between deploys without changing any code; unlike config files, there is little chance of them being checked into the code repo accidentally; and unlike custom config files, or other config mechanisms such as Java System Properties, they are a language- and OS-agnostic standard.

https://12factor.net/config

so here comes industry best practice! "seemingly a bit paradoxical"

(Note that my thoughts might be opinion-based. And yes, I guess an implicit assumption that there are only a handful of variables fixes this. Namespace-resemblant naming etc.. There are workarounds.

However, that backdoor to unwanted interdependency creeps is starting to open in any case :) and human patience as well as developer discipline I guess are typically very finite things ...)


Nincsenek megjegyzések:

Megjegyzés küldése