39
What is the best file format for configuration file?
(programming.dev)
This is a most excellent place for technology news and articles.
I like xml, but it isn't the easiest to read.
I hate yaml with a burning passion. At least with JSON you can compress it all down.
We seem to have something in common: there is a serialisation form, we strongly dislike. But what I cannot understand is: why the heck would anyone torture anyone else to read or even write XML? XML is the absolutely worst configuration language I can imagine. I mean: when is something an attribute, when a tag on its own? What is even a list? And don't forget to include a full HTTP URI for the namespace, otherwise the tag is not defined.
By the way: all valid JSON is valid yaml as well. So in theory, you can use yaml as JSON with comments.
I mainly work with windows, and powershell works great with xml.