• SpeakinTelnet@programming.dev
    link
    fedilink
    arrow-up
    8
    arrow-down
    2
    ·
    10 months ago

    I don’t care how much you think your code is readable, plain text comments are readable by everyone no matter the proficiency in the programming language used. That alone can make a huge difference when you’re just trying to understand how someone handled a situation.

    • Fal@yiffit.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 months ago

      There’s nothing keeping the comments up to date with the code. Comments should be sparse and only on sections that aren’t obvious why they’re being done

    • lorty@lemmygrad.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      10 months ago

      Then someone needs to change something about the code and doesn’t bother updating the comment. Now you still have uncommented code but with a comment that confuses instead of helping.

      • SpeakinTelnet@programming.dev
        link
        fedilink
        arrow-up
        7
        ·
        10 months ago

        IMHO the issue in this situation is not the comment but that the person updating the code didn’t do his job properly which shouldn’t be an excuse not to do it from the start.