MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena@jemmy.jeena.net to Programmer Humor@programming.devEnglish · 2 years ago

A lot of YAML

jemmy.jeena.net

message-square
83
fedilink
1.05K

A lot of YAML

jemmy.jeena.net

Jeena@jemmy.jeena.net to Programmer Humor@programming.devEnglish · 2 years ago
message-square
83
fedilink
  • mkhopper@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    2 years ago

    It isn’t “bad”, as it does have a purpose. It’s just fucking annoying to work with.

    https://docs.platform.sh/learn/overview/yaml/what-is-yaml.html

    • Michal@programming.dev
      link
      fedilink
      arrow-up
      16
      arrow-down
      1
      ·
      2 years ago

      How’s it annoying? It’s easier to edit by hand than json as it allows for comments and there’s no trailing comma errors. I prefer it any day over json.

      • magic_lobster_party@kbin.social
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        There’s a lot of foot guns in YAML. The specification is way more complicated with hidden obscurities. JSON specification is just 5 diagrams. YAML speciation on the other hand is an 86 page pdf, so there’s more room for nasty surprises (which is not a thing you want in configuration files).

        I’ve also seen many people struggle more than they need to with the yaml indentation.

        I think the only upside to yaml is that it allows for comments, but other than that JSON all the way.

        https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

      • The Giant Korean@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        The fact that it allows comments is really, really handy. I used to be a JSON advocate until I realized this one useful piece of info.

        • bellsDoSing@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Yeah, such a simple, but still killer feature. Really sad that JSON doesn’t support them.

          • The Giant Korean@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            I wonder how you’d even implement that. Like maybe {! At the beginning.

            • GTG3000@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              Most comment-aware JSON parsers I’ve seen just use standard // to delineate comment lines.

              • The Giant Korean@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 years ago

                They make sense.

      • zalgotext@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 years ago

        It’s just another syntax to learn. For someone who already has their head crammed full of a bunch of other syntaxes over the years, I didn’t want to learn a new one. YAML has kind of forced it’s way in anyways though.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 515 users / day
  • 4.45K users / week
  • 9.2K users / month
  • 17.9K users / 6 months
  • 4 local subscribers
  • 23.3K subscribers
  • 1.41K Posts
  • 51.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org