I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it's clunky to use. Can you explain why?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago (2 children)

Yes, they could've just used JSON. Totally pointless waste of time.

  • source
  • hideshow 4 child comments
  • [–] 13 points 2 years ago (5 children)

    JSON does lack comments. And numbers that are not 64 floats.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 7 points 2 years ago (1 child)

    TFB, the numbers are not defined as 64 bits floats.

    They are just not defined. At all.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    Exactly that's a job for the parser / consumer.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago

    That's a valid point.

    There are two kinds of good serialization languages, the ones where values are black boxes and only serialize the data structure, and the ones where everything is completely determined and can be turned directly into an API.

    JSON is neither, but it's closer to the first than YAML. XML is the first, while the SOAP standard almost turns it into the second. TOML is about as close to the first as JSON.

  • source
  • parent
  • [–] 5 points 2 years ago (1 child)

    So Poe's Law and all that... I really hope you're being sarcastic because having non-technical people hand edit JSON is a nightmare. It's also quite annoying to read without a lot of extra whitespace which most editors that'd help less technical folks omit... and comments to help highlight what different things mean are hacky, hard to read, and actually read as data.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago

    No, I'm kind of serious, the comment situation is already solved in JSON... about the rest yeah, Yaml might be easier but the different isn't that much. Non tech people can't edit Yaml properly either so.

  • source
  • parent