12

YAML is a pile of shit.

Comments
  • 4
    Indeed it is brother
  • 1
    Exactly. I legit tried studying it and after half hour, I gave up on that piece of shit.
  • 3
    I hate indentation sensitive markup I hate indentation sensitive markup I hate indentation sensitive markup I hate indentation sensitive markup I hate indentation sensitive markup I hate indentation sensitive markup
  • 2
    YAML is just better JSON.
  • 0
    @kobenz
    Data serializatipn. Semantics.
  • 0
    You too 😘
  • 3
    JSON is a subset of YAML.

    But YAML just sucks.

    Without an generator / im|exporter its errorprone to write... And the YAML spec has quite a few loopholes, so what works in one language might not work at all in another language.

    Plus the funky quoting issues as (data-)types don't exist in YAML.

    Any larger YAML file is just a nuclear fission bomb waiting to make your life as miserable as it can get.
  • 1
    @kobenz

    Yes. We're both right. The important nit bit is that its up to the parser to support it, but e.g. YQ explicitly supports it.

    https://mikefarah.gitbook.io/yq/...

    Some people love to debate whether JSON truly is a subset of YAML or not...

    But imho thats just a waste of breath. ;)
  • 1
    @kobenz

    That makes JSON the DILF

    Dataformat I'd like to fuck.

    Good argument.
  • 4
    How to love yaml:

    Don’t use it for data transfer and serialization.
    Use it for configuration.

    You are welcome.
  • 2
    Protip: if you ever want to figure out where a subkey ends in a YAML file, you can set your cursor to the beginning of the key and tap the down arrow until there's something to the left of the cursor.

    If you want to figure out where a subkey ends in a JSON file, you can set your cursor to the opening bracket and go to matching pair using your text editor's corresponding command.
  • 1
    @lorentz
    I use a finger for yaml, maybe that's why it never works.
  • 0
    @msdsk try yq or jq for JSON.
  • 2
    YAML is great if you don't know about 95% of the spec and stick to using the simple part
  • 3
    Bit harsh. It's basically a readme file with strong tabbing consequences.
  • 1
    Yaml is a sile of phit!
  • 0
    YAML is great. Change my mind
  • 2
    @kobenz Am I the only one finding that the relevant whitespace is the least of the problems that Python has?
  • 2
    @Lensflare pythons biggest problem is pypi/pip...

    It's a security nightmare...
  • 0
    @lungdart poetry and / or virtualenvs to the rescue.
Add Comment