• 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?

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 day 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
          ·
          1 day 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
            ·
            22 hours 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