dirtydozen.dev – Over configuration


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.dev

Browse to https://dirtydozen.dev/over-configuration to carry on reading about Over configuration

Marcin Narloch

Marcin Narloch

Creative and out-of-the-box thinker with strong interests and knowledge in technology and innovation.
dirtydozen.dev Previous post dirtydozen.dev – Sensitive config
dirtydozen.dev Next post dirtydozen.dev – Large method bodies

Leave a Reply

Your email address will not be published. Required fields are marked *