Skip to content

ASCII protocol buffers as config files

rachelbythebay.com
2 pointssmarx2 comments
On HN

Comments

I'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).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.