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

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    I’ve been programming for almost 25 years and I’d still rather see too many comments than too few. A dogmatic obsession with avoiding comments screams “noob” just as much as crummy “add 1 to x” comments. If something is complex or non-obvious I want a note explaining why it’s there and what it’s supposed to do. This can make all the difference when you’re reviewing code that doesn’t actually do what the comment says it should.