3 ms·
I wrote this article, and at this point I don't really have a strong preference for any one format. I think a lot depends on what it's used for. YAML can actua
by Carpetsmoker 8y ago
I wrote this article, and at this point I don't really have a strong preference for any one format. I think a lot depends on what it's used for.
YAML can actually be pretty useful. For example, recently I wrote a tool to generate OpenAPI/Swagger files from Go source code, and outputting that as YAML works pretty well, as YAML is quite easy to read for that.
YAML can also be a good choice to serialize some things to disk, like program state. JSON can also be a good choice for that, as can TOML.
But for other things ... it's not so great. I should probably write an article detailing this at some point, but ...
$ ls -1 /data/code/arp242.net/_drafts | wc -l
64
So much stuff I need to finish :-( I've added your suggestion there though!