• zygo_histo_morpheus@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    It’s hard to do this consistently (especially in a team) because people might (and statistically in a large enough project, will) use the tab key for alignment since it’s faster than pressing space, or just be confused about what whitespace is tabs and what is space. Just using space everywhere is idiot proof and requires no work to micromanage. The only way to use tabs is to not align at all.

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

      I agree that it’s hard, but not impossible. This usually boils down to how Nazi people are when merging code. In a corporate environment, nobody gives a damn so yeah you gotta use whatever you want because there are already different indentation systems within the same file anyway :)

      But hey, you gotta live by the changes you want to see happen, so I personally put a lot of effort in formatting my code regardless.