DEV Community

Discussion on: Code Smell 29 - Settings/Configs

Collapse
 
alainvanhout profile image
Alain Van Hout

To me, this sounds great in theory, but unlikely in practice: the point of configuration is that you can affect application behaviour without requiring regular redeployments. What you suggest seems only to be workable as a proper replacement for configuration if you use something like OSGi, which is its own can of worms.

Collapse
 
mcsee profile image
Maxi Contieri

Hi Alain!

As with most code smells, they are not rigid rules. I point for possible abuses, but I agree there are many valid scenarios.

I think you should carefully choose your own scenarios and decide if they deserve a configuration object (not a setting) . This will not require a new deployment. I will clarify the article