4 ms·
Create a good config file format and transpile that to a bad config file format for use in an application? I dunno I would rather just have the application use
by terandle 8y ago
Create a good config file format and transpile that to a bad config file format for use in an application? I dunno I would rather just have the application use a decent config file format in the first place.
It's just a config file, no need to overthink this with translation layers IMO.
- zaphar 8y agoNo good config file format will allow you to share common shared values across all of the formats. That database host everything uses? You'll have to copy paste it everywhere or use a template engine to generate all of the formats. If you only have one application then it's overkill. When you have 10's of applications it's a life saver.
- terandle 8y agoGood point. However hopefully whatever brilliant file format the source of truth is in will eventually end up being able to be consumed natively by the other applications and we can forgo the translation layer. Until then yes you have a good use case there.