• z3bra@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Tabs for indent, spaces for alignment. This is the way, I can’t believe people are still fighting that ?

  • eee@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Neither tabs or spaces are good. The correct way is to leave no whitespace in the code at all. It’s unnecessary and adds to processing time.

    Everyone should aim for 1LOC per commit

  • xigoi@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Tabs let you define how big you want each indent to be

    …except when they don’t. Many common environments have a hardcoded tab size of 8, which is insanely big for using it for indentation.

    • z3bra@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Because other people might have restricted environment which might not suit their preference is not a good reason to level it down IMO.

      Also, I think 9 is the best size for indent (matter of preference), do you think I should switch to space so everyone can enjoy this wonderful view I have ?