3 ms·
>Configuration files usually are only read by one piece of code. Having a single source of truth and multiple services and scripts needing the same info means
by coldtea 3y ago
>Configuration files usually are only read by one piece of code.
Having a single source of truth and multiple services and scripts needing the same info means the same configuration file will get to be read by many pieces of code, even from different languages.
And that's without considering piecemeal migration of the same "one piece of code" running on different services to another language or a version two design, still needing to read the same file.
>IMO, configuration file formats should only ever have text as primitive type. Anything else should be defined in another layer. I completely agree with that part of the argument from the article.
I mean, that's not even wrong.
Except if you mean "they should not be binary". Then, sure.