• corsicanguppy
    arrow-up
    11
    arrow-down
    2
    ·
    9 months ago
    edit-2
    9 months ago
    link
    fedilink

    Xkcd 927?

    Also yaml is ugly as hell and I’m okay avoiding it.

    • gornius
      arrow-up
      11
      arrow-down
      5
      ·
      9 months ago
      edit-2
      9 months ago
      link
      fedilink

      What?

      It’s simple and readable. You literally put somebody that has never coded in their life, show them the YAML file and they will probably get it. Worked both with my boss and my girlfriend.

      In Toml there are too many ways to do the same thing, which I don’t like. Also unless you know it deeply, you have no idea how the underlying data structure is going to look.

        • BarrierWithAshes
          arrow-up
          10
          arrow-down
          4
          ·
          9 months ago
          link
          fedilink

          Wow. I’ve never used yaml or even looked at it but damn that is horrid. Why do people even use this? JSON and XML are so better.

          • NovaPrime
            arrow-up
            13
            arrow-down
            2
            ·
            9 months ago
            link
            fedilink

            I say this with all due respect, but XML can gargle nuts.

          • snoweM
            arrow-up
            12
            arrow-down
            4
            ·
            9 months ago
            link
            fedilink

            Because no one ever uses those. Literally > and | are the only ones I’ve ever seen in over a decade and you will never need to worry about the differences between the two.

            XML as a configuration language is terrible. Yaml gets the point across in an easily readable way, which is exactly the point. Same for JSON except JSON you can’t even use comments (you need json5 or one of the numerous other alternatives to get those).

          • Eager EagleEnglish
            arrow-up
            3
            arrow-down
            1
            ·
            9 months ago
            edit-2
            9 months ago
            link
            fedilink

            It’s really unfortunate the devops world chose such a hot mess of a format. Extending JSON with comments would be a dumb choice and still do a better job for most config files.

            noyaml.com

    • matcha_addict
      arrow-up
      5
      arrow-down
      0
      ·
      9 months ago
      link
      fedilink

      Yaml is already pretty popular, so I don’t think 927 applies here. It’s actually more common in newer projects than toml.

      Which begs the question, should I go with the flow or is there good reason to go with toml?