News for hackers. Stuff that matters.
Re:Enhanced Support for Citations on GitHub by tasogare on Friday August 20, 2021 @10:28PM (#28253562)
> YAML

Can't we let this format die? It's both hard for human to format correctly, and for library creator to make a compliant parser.

Re:Enhanced Support for Citations on GitHub by encryptluks2 on Friday August 20, 2021 @10:32PM (#28253594)
> It's both hard for human to format correctly, and for library creator to make a compliant parser.

It is actually very easy to format correctly, unless you don't understand the format. While it may challenging to make a compliant parser, many exists for multiple languages.

JSON isn't a viable replacement.. TOML doesn't support root level lists and has its own set of challenges and is a lot more ugly and difficult to understand for complex nested structures.

If you want to kill YAML then replace it with HCL.

Re:Enhanced Support for Citations on GitHub by XorNot on Friday August 20, 2021 @11:23PM (#28253880)
TOML is atrocious. In trying to look ini-like its table and nested structures become completely inscrutable.

I only ever deal with it by writing what I need in YAML and running a converter.

Re:Enhanced Support for Citations on GitHub by encryptluks2 on Friday August 20, 2021 @11:56PM (#28254040)
Agreed. I think HCL would make a nice replacement though.
Re:Enhanced Support for Citations on GitHub by koolba on Friday August 20, 2021 @10:42PM (#28253648)
What’s HCL?
Re:Enhanced Support for Citations on GitHub by CobsterLock on Friday August 20, 2021 @10:49PM (#28253679)
It seems to be a HashiCorp Configuration Language, HashiCorp being the creators/sponsors of terraform (I don't know much about terraform or hashicorp)
Re:Enhanced Support for Citations on GitHub by diob on Friday August 20, 2021 @11:22PM (#28253876)
I have the same problems as you. For some reason I can't work in that type of format (similarly with Python).

No beef against those that love it, my brain just can't handle it.

Re:Enhanced Support for Citations on GitHub by prepend on Friday August 20, 2021 @11:28PM (#28253911)
Meh. It’s ok. I’ve used it in many projects and languages while never caring about and being able to find an OSS parser in all languages.
Re:Enhanced Support for Citations on GitHub by BossingAround on Saturday August 21, 2021 @07:03AM (#28255951)
Most people I know have had an issue where they misunderstood what an object in a YAML file is (and therefore did not apply a configuration) or something similar.

Bonus points for mis-editing a kube object (kubectl edit) that you save correctly only to realize that mis-formatted YAML can get thrown away without reporting an error back (looking at you Istio).

And yet people choose it again and again for new projects. Someone must love it given the popularity...