• @bleistift2@sopuli.xyz
      link
      fedilink
      English
      178 days ago

      Protip: Add a minor inconvenience to every line, like a trailing space or slightly misaligned indentation. That way the next guy who opens the file will automatically correct it, taking the git blame.

      • @ulterno@programming.dev
        link
        fedilink
        English
        18 days ago

        My company had 2 types of people…

        Everyone else: who used sometimes 3 or 4 spaces (yes, manually pressing the spacebar even though the IDE provided them);
        Me: Commit 1 Added .clang-format
        Commit 2 Ran git clang-format