3 ms·
ASCII protocol buffers as config files
- lopkeny12ko 3y agoI've been using this pattern recently for a few projects for strong config typing. A nice property is that the protos define only the schema, and can technically be used with any config delivery format. This article uses prototext but you could easily use JSON, or any other language that "compiles down" to JSON (like YAML).
- mdwalters 3y agoDupe of https://news.ycombinator.com/item?id=37782010 https://news.ycombinator.com/item?id=37782010.