• Coconut1233@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    4
    ·
    10 months ago

    Spaces are kinda better, because tabs are not consistent across editors/platforms. Just please use the tab key to indent, don’t press the spacebar x times like a monkey

    • Luna@lemdro.id
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      10 months ago

      I prefer tabs because they aren’t consistent

      I personally find 2-space indented code harder to read than 4-space. If I’m working on someone else’s codebase which is indented with 2-spaces then I have to cope. But if it’s tab-indented then I can just edit the setting in my editor to display a tab char as 4 whitespace chars