Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain 😅

  • @[email protected]
    link
    fedilink
    English
    56 days ago

    I feel like this is a debate that doesn’t exist - 4 spaces bound to tab is the only actual answer.

    • @[email protected]
      link
      fedilink
      106 days ago

      most things seem to have settled on this, but tabs are so much better for accessibility. programmers with bad vision can have trouble differentiating smaller indentation levels, while some of them just bump the font size up so high that 4 spaces takes up too much screen space. each one can set a tab width that is comfortable for them. https://alexandersandberg.com/articles/default-to-tabs-instead-of-spaces-for-an-accessible-first-environment/ has some good arguments

      with a forced formatter and a configured editor there really isn’t any argument for spaces

      • @Quetzalcutlass
        link
        English
        1
        edit-2
        13 hours ago

        I remember people arguing over 2 vs 3 spaces, back when terminals only displayed 80 characters and every character width saved was a huge deal. (Oh god, memories of all the single-character variable names have returned to haunt me)

        I can’t go back, won’t go back. I am so glad the Bad Old Days are over. *returns to coding on my dual-widescreen monitor setup*

    • @[email protected]
      link
      fedilink
      55 days ago

      Hard tabs are much better as someone who works with an age diverse team where vision issues are a serious issue. Four space tabs are optimal for you but there are other lived experiences.