Comment from my group project teammate. You don’t need to comment every line lol

  • Fades@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    edit-2
    5 months ago

    Wrong. Too many comments makes the code messy and less readable and also it provides ZERO value. Just look at the post, WHAT is useful about ANY of that comment???

    All it is is a waste of goddamn space, literal junk crowding the actual code.

    I love how you admit you aren’t a developer but feel quite confident to tell us that a larger number of comments automatically means it’s better.

    This person articulated it better than I: https://midwest.social/comment/10319821

    • LwL@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      Too many is still better than too few, and it’s not close. Useless comments make parsing a bit harder. Missing comments can mean hours of research.

      • sping@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        5 months ago

        These are arguments talking past each other. Sure 1 useful comment and 9 redundant ones can be better than zero, but comments are not reliable and often get overlooked in code changes and become misleading, sometimes critically misleading. So often the choice is between not enough comments versus many comments that you cannot trust and will sometimes tell you flat-out lies and overall just add to the difficulty of reading the code.

        There’s no virtue in the number of comments, high or low. The virtue is in the presence of quality comments. If we try to argue about how many there should be we can talk past each other forever.