IV. Over configuration
Keep things simple
Config is great, it can take shape of an innocent boolean switch value or contain more sensitive information such as access key or password. Last thing we want as programmers is having to recompile
and redeploy
our code every time database connection that happens to be hard-coded
and buried somewhere in your Data Access Layer needs to be changed.
Bigger problems normally arise when people enter what I call the
Over configuration
mode. Such situation can be dangerous, it can lead to confusion and cause much more serious headaches than just hard-coding stuff in the first place.
Let’s consider this config, which on the face of it doesn’t look too bad, right?
{
"databaseConnection": "db://abcdef",
"clientApiUri": "https://api.client.com",
"productApiUri": "https://api.product.com"
}
Read more on dirtydozen
Browse to https://qbituniverse.github.io/dirtydozen/over-configuration/ to carry on reading about Over configuration
…