Hard Pass
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
skepller@lemmy.world to Programmer Humor@programming.devEnglish · 16 hours ago

TOML

lemmy.world

message-square
81
link
fedilink
410

TOML

lemmy.world

skepller@lemmy.world to Programmer Humor@programming.devEnglish · 16 hours ago
message-square
81
link
fedilink
  • panda_abyss@lemmy.ca
    link
    fedilink
    arrow-up
    75
    ·
    15 hours 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.

    • Flamekebab@piefed.social
      link
      fedilink
      English
      arrow-up
      23
      ·
      12 hours ago

      As someone who works with YAML regularly:

      Fuck YAML.

      • Damage@feddit.it
        link
        fedilink
        arrow-up
        14
        ·
        10 hours ago

        As someone who runs Home Assistant:
        Fuck YAML.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      47
      arrow-down
      1
      ·
      14 hours ago

      YAML is redeemed by one thing only:

      All JSON is valid YAML.

      • PieMePlenty@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 hour ago

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

        • Jayjader@jlai.lu
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 minutes ago

          Yup! YAML is defined as a “strict superset” of JSON (or at least, it was the last time I checked).

          It’s a lot like markdown and HTML; when you want to write something deeply structured and somewhat complex you can always drop back/down to the format with explicit closing delimiters and it just works™.

    • ramble81@lemmy.zip
      link
      fedilink
      arrow-up
      11
      arrow-down
      3
      ·
      11 hours ago

      I have a fundamental disdain for formats with restrictive white space definitions (I’m looking too at you Python)

      • panda_abyss@lemmy.ca
        link
        fedilink
        arrow-up
        12
        ·
        11 hours ago

        I’ve never had this issue with Python, but makefile has given me plenty of whitespace issues.

        • ramble81@lemmy.zip
          link
          fedilink
          arrow-up
          3
          ·
          11 hours ago

          Should have added if it cares about tabs vs spaces.

          • thesmokingman@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            7 hours ago

            The author knew it was a bad idea

    • suicidaleggroll@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      13 hours 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
        1
        ·
        3 minutes ago

        Is there a reason? Norway!

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      8
      ·
      14 hours ago

      import yaml :)

    • derek@infosec.pub
      link
      fedilink
      arrow-up
      3
      ·
      13 hours ago

      I’m a fan of NestedText. It’s no panacea but I’d argue it’s the most well-considered and useful file format for structured data in plain text.

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        13 hours ago

        There just needs to be one universal standard that handles everyone’s use cases

        • thesmokingman@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          7 hours ago

          https://xkcd.com/927/

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.

  • 1.59K users / day
  • 3K users / week
  • 7.88K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 30K subscribers
  • 1.14K Posts
  • 23.4K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org