2 ms·
> If ops team can, and does, recompile everything regularly then why not just have them as constants in the code, or in some cases just directly in the code ?
by dozzie 11y ago
> If ops team can, and does, recompile everything regularly then why not just have them as constants in the code, or in some cases just directly in the code ?
Because the ops team does not recompile everything regularly, and sometimes
needs to run a service with different config in an ad-hoc manner.
Also, aiming the code at being configured when being run yields better
separation between code configuring the thing and code that runs it. If you
can't see what profit comes from keeping configuration separate from code, I'm
affraid you won't be able to gather configuration in one place easy to change.