ExLisper Site
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
skepller@lemmy.world to Programmer Humor@programming.devEnglish · 18 days ago

TOML

lemmy.world

message-square
94
link
fedilink
444

TOML

lemmy.world

skepller@lemmy.world to Programmer Humor@programming.devEnglish · 18 days ago
message-square
94
link
fedilink
  • panda_abyss@lemmy.ca
    link
    fedilink
    arrow-up
    67
    ·
    18 days ago

    If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing.

    But yaml is a mess, and you’d think you could parse it easily, but you can’t.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      45
      ·
      18 days ago

      YAML is redeemed by one thing only:

      All JSON is valid YAML.

      • PieMePlenty@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        18 days ago

        No way. You’re telling me I can just write json instead?

    • Flamekebab@piefed.social
      link
      fedilink
      English
      arrow-up
      29
      ·
      18 days ago

      As someone who works with YAML regularly:

      Fuck YAML.

      • timbuck2themoon@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        17 days ago

        Nah, yaml isn’t great by virtue of itself but with what it competes with. I far, far prefer it to any other BS. Json is garbage for human creation and obviously toml due to above. XML… Obviously just for machines.

        Again, only good because of its competition.

        • Flamekebab@piefed.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          17 days ago

          I prefer writing JSON by hand. The whitespace stuff in YAML is just such a nuisance as far as I’m concerned, which is odd as I have no problem with it in Python.

    • suicidaleggroll@lemmy.world
      link
      fedilink
      arrow-up
      21
      ·
      18 days ago

      I want to like yaml, I really do, but why are there so many different ways of specifying the same thing?

      • FooBarrington@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        18 days ago

        Is there a reason? Norway!

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      18 days ago

      import yaml :)

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.

  • 2.09K users / day
  • 3.3K users / week
  • 4.81K users / month
  • 10.6K users / 6 months
  • 1 local subscriber
  • 30.3K subscribers
  • 1.12K Posts
  • 10.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.16
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org