• alehel@lemmy.zip
    link
    fedilink
    arrow-up
    19
    ·
    2 days ago

    I just know that for decades people will check the git blame and curse my name.

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      2 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
        arrow-up
        1
        ·
        2 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