3 ms·
What is the difference between code and config, other than one is well-typed?
by TheDudeMan 4y ago
What is the difference between code and config, other than one is well-typed?
- hayst4ck 4y agoConfig could be put into a database and queried while code doesn't have a sensical database representation. Even when config is code (which is almost guaranteed to happen as a config requiring system is developed), at some point in the process there is a representation that could be meaningfully stored in a columnar database before it's consumption. Code is generally considered stateless, asking for an input and providing an output that is determined only by the code and the input. Embedding state inside of code is generally a pretty grievous sin, although some places are vastly more sinful than others.