Why are we templating YAML?
leebriggs.co.uk
Why are we templating YAML?
1–10 of 351 posts
Re: Why are we templating YAML?
#2Re: Why are we templating YAML?
#3That means you write it, send it, store it, operate on it, etc. with little or no modification.
The author says "converting between the two is trivial" which may be true, but the developer overhead is less trivial. And it will always be JSON in the client - JS doesn't support YAML objects.
Re: Why are we templating YAML?
#4The real question is why are we using yaml at all?
Write JSON and use your editor tools to format it with nice indentation, and you are sweet!
That said Yaml makes an excellent format for reading, but not for writing.
Re: Why are we templating YAML?
#5The real question is why are we using yaml at all?
Re: Why are we templating YAML?
#6I think they are missing the real selling point of JSON. It's basically interoperable with JavaScript objects. That means you write it, send it, store it, operate on it, etc. with little or no modification. The author says "converting between the two is trivial" which may be true, but the developer overhead is less trivial. And it will always be JSON in the client - JS doesn't support YAML objects.
I remember mongodb started with json, but switched to in-house bson pretty early because of the json limitations.
Re: Why are we templating YAML?
#7The real question is why are we using yaml at all?
Re: Why are we templating YAML?
#8The real question is why are we using yaml at all?
Baffles me. I don't like any language or file format where whitespace matters. Even Haskell bothers me in this regard. To me white space shouldn't add cognitive load. I want to look at the symbols not the formatting of the antisymbols to understand what is going on. Write JSON and use your editor tools to format it with nice indentation, and you are sweet! That said Yaml makes an excellent format for reading, but not…
Re: Why are we templating YAML?
#9I think they are missing the real selling point of JSON. It's basically interoperable with JavaScript objects. That means you write it, send it, store it, operate on it, etc. with little or no modification. The author says "converting between the two is trivial" which may be true, but the developer overhead is less trivial. And it will always be JSON in the client - JS doesn't support YAML objects.
Re: Why are we templating YAML?
#10The real question is why are we using yaml at all?
It's a lot easier for end-users to read and write by hand. If that is not a requirement, a simpler machine-friendly format is likely better.