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

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    24 days ago

    Why not put the “why” in a comment and save people the job of dredging through old commits and tickets to figure out what the code is for? I’d thank someone for saving me the hassle.

    • magic_lobster_party@kbin.run
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      24 days ago

      You can also do that if you think it’s useful.

      Going back to the original ticket can offer far more info than what any “why” comment can give. You can see how old it is, if there are any connected tickets, who were involved with it, step by step instructions how to reproduce the bug, etc.