• Maalus@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 hour ago

        The only moment you write comments is when you are doing something extremely weird for a specific reason that will not be immediately obvious and you want to warn the person doing a refactor in the future. In any other case, writing self documenting code is the way. If you are unable to do that, then your code needs to be rewrtitten.

        • ruekk@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          ·
          9 minutes ago

          Self documenting code is a myth as what’s self documenting to one person is not to the next. Code comments and process/workflow documentation is needed for a healthy codebase.