Crony's Dungeon
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
skepller@lemmy.world to Programmer Humor@programming.devEnglish · 6 days ago

TOML

lemmy.world

message-square
129
link
fedilink
559

TOML

lemmy.world

skepller@lemmy.world to Programmer Humor@programming.devEnglish · 6 days ago
message-square
129
link
fedilink
  • Senal@programming.dev
    link
    fedilink
    English
    arrow-up
    53
    arrow-down
    1
    ·
    6 days ago

    Significant white-space is bullshit and i will die on this hill.

    • BlueKey@fedia.io
      link
      fedilink
      arrow-up
      20
      ·
      5 days ago

      Is there space left on the hill? I want to join you.

      • Michal@programming.dev
        link
        fedilink
        arrow-up
        21
        ·
        5 days ago

        I hear there’s significant space left

        • squaresinger@lemmy.world
          link
          fedilink
          arrow-up
          10
          ·
          5 days ago

          But it’s only white space. That’s kinda racist.

          • Senal@programming.dev
            link
            fedilink
            English
            arrow-up
            4
            ·
            5 days ago

            significant white space to it’s classist and racist

        • _stranger_@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          5 days ago

          Their whole thing is that they don’t want to care about it, so if you get to the hill and there’s no space, you’re SOL.

    • rothaine@lemmy.zip
      link
      fedilink
      arrow-up
      11
      ·
      6 days ago

      Yeah I just want JSON with optionally quoted keys, and comments.

      • BlueKey@fedia.io
        link
        fedilink
        arrow-up
        5
        ·
        5 days ago

        JSON5 my beloved

      • bobo@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        5 days ago

        Commas (at least the trailing ones), comments, and nothing else. JSON with type inference seems like an incredibly bad idea…

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      You are not alone, my friend

    • laranis@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      6 days ago

      Preach!

    • softwarist@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      5
      ·
      5 days ago

      You’re going to indent your code anyway, so why not let the indentation carry meaning?

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        4 days ago

        Because I am not counting white space when I read. Or should we just write machine code/assembler/pick something straight away?

        • softwarist@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 days ago

          Not sure I’m following the jump from significant whitespace to machine code. How are those related?

          • Shanmugha@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            Human and machine read differently. If you ignore that (in case with indentation), then why bother with writing human-friendly form of code, when what is going to be really executed is something else?

            • softwarist@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 days ago

              If anything, that sounds like an argument in favor of significant indentation, not against it. Humans and machines read differently, yes, which is why we tend to add whitespace and indentation to code even for programming languages where it’s not significant. We do that expressly because it makes the code more human-friendly, so it’s quite the opposite of ignoring their differences.

              • Shanmugha@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 day ago

                No, it is an argument against it. We indent code so that it is more comfortable to read it, not in order to make it easier to understand

                • softwarist@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 day ago

                  You’re mistaken:

                  Indentation is a secondary notation that is often intended to lower cognitive load for a programmer to understand the structure of the code.

                  • Shanmugha@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    1 day ago

                    Lol. Go on, show me how it is easier to understand structure of the code when I am 3 levels down, first two are already out of sight

      • 3abas@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        5 days ago

        Because yaml is not a programming language, and debugging why your whatever you’re configuring isn’t working correctly can be a nightmare. It doesn’t tell you you missed an indent on a block, it just assumes it should be there and changes the meaning.

        Braces are visually clear.

        • softwarist@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          I think YAML has its fair share of design flaws, but I don’t think significant indentation is one of them. It may not be a programming language (which may be debatable), but there are plenty that use syntactic whitespace.

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.

  • 195 users / day
  • 3.19K users / week
  • 6.36K users / month
  • 15.2K users / 6 months
  • 1 local subscriber
  • 30.1K subscribers
  • 1.94K Posts
  • 60K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org