News for hackers. Stuff that matters.
Re:Yml Coding by throwaway4889 on Sunday August 30, 2020 @04:44PM (#24325783)
Yaml is the new xml
Re:Yml Coding by IshKebab on Sunday August 30, 2020 @05:10PM (#24325964)
I dunno, XML may have been verbose and overused but at least it had a fairly solid design. YAML is terrible.
Re:Yml Coding by Spivak on Sunday August 30, 2020 @11:53PM (#24328363)
YAML “won” for some definition because it’s really natural to write. Mix colons and brackets, multiline strings that aren’t weird, type annotations when desired, add your own types, basic but functional-ish DRY support that’s transparent to the reader, dict merging. Throw in some value templating a la Ansible and you have a really solid language to express annoying data shapes.
Re:Yml Coding by zo1 on Sunday August 30, 2020 @05:38PM (#24326135)
I always saw it as "JSON was the new XML". And JSON Schema was the new XSD. And then they went ahead and also re-invented SOAP using "Swagger" / OpenAPI.

Luckily, JSON/YAML is mostly interchangeable these days as it's just a nested hierarchy of a few basic types. Heck, I mostly treat XML the same way as well.

Re:Yml Coding by ses1984 on Monday August 31, 2020 @12:47AM (#24328574)
Did you know that json is actually valid yaml?