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

  • Incandemon@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    5 months ago

    Don’t comment what a line is doing. Instead, write your code, especially names for variables, constants, classes, functions, methods and so on, so that they produce talking code that needs no comments.

    Over and over and over again in my experience this just doesn’t work. Readable code does not substitute for comments about what the code should be doing.