News for hackers. Stuff that matters.
Re:Why are we templating YAML? by ilovetux on Thursday February 07, 2019 @07:22PM (#19110071)
I find YAML to be almost unusable. IMO it's just not intuitive. If I get to choose a format for my config files I would only use TOML, it's just better (again IMO).
Re:Why are we templating YAML? by skywhopper on Thursday February 07, 2019 @11:42PM (#19111588)
All these comments amuse me, because I feel the opposite. YAML has always made immediate intuitive sense to me. Meanwhile TOML feels like a terrible hack.

Also, I'm guessing I'm in a tiny minority who loves YAML but hates Python's semantic indentation...

Re:Why are we templating YAML? by imtringued on Friday February 08, 2019 @10:13AM (#19114901)
I like YAML but it has some minor quirks and it feels overused in domains in which it simply doesn't make sense to use YAML. I can think of ansible or complex dynamic configurations that depend on external values as mentioned in the article. If simple merging of a base file + dev, staging, prod files isn't enough for the task at hand then YAML is a bad fit.
Re:Why are we templating YAML? by harshreality on Friday February 08, 2019 @12:08AM (#19111715)
I'm the same way. I think it's a difference in my expectations of a programming language versus a hierarchical data storage format. I'm fine with (and even prefer) enforced whitespace in data formats. That makes it easier to view and edit.

In programming languages, it makes me twitch. I don't have any problem with "accepted" formatting styles (i.e. linux kernel c style), but for the language itself to enforce that for some reason feels like it's adding perpetual cognitive overhead (like whenever I use python). I don't know why; it shouldn't be any different than using a particular formatting style voluntarily in a more flexible language, but somehow, it feels different.

Re:Why are we templating YAML? by hliyan on Friday February 08, 2019 @02:14AM (#19112156)
This is strange. The thing I most like about YAML is how intuitive and human readable it is.
Re:Why are we templating YAML? by afiori on Friday February 08, 2019 @08:03AM (#19113726)
One thing that is rarely pointed is that one of the advantages of TOML is that it allows to write dictionaries/tables not as trees.
Re:Why are we templating YAML? by h1d on Thursday February 07, 2019 @11:13PM (#19111458)
Agreed. From readability perspective, I started out with INI, which I ditched partially due to having no standard on the format and skipped JSON when it can't add comments, skipped YAML for not looking too intuitive, considered JSON5 but skipped for being not popular enough and landed on TOML.
Re:Why are we templating YAML? by Pxtl on Thursday February 07, 2019 @11:54PM (#19111650)
And I skipped toml for an object-array syntax that makes baby Jesus cry.

None of these problems are hard, why are all the solutions so awful?

Re:Why are we templating YAML? by h1d on Friday February 08, 2019 @12:06AM (#19111709)
What are you using now?
Re:Why are we templating YAML? by Pxtl on Friday February 08, 2019 @08:30AM (#19113912)
XML, generally. I hate it but I've given up on its "successors".
Re:Why are we templating YAML? by pkulak on Friday February 08, 2019 @02:19AM (#19112172)
Hocon for me, if I get to choose.