• zeekaran@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    3 months ago

    Unless you’re writing something in the open source world, rarely does any code need comments at all.

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 months ago

      That’s a hot take. If you want your code to be maintainable at all, it needs comments. If you’re part of a team, write comments for them. If someone else may take over your project after you move on, leave comments for them. And have you ever tried to read uncommented code you wrote a year ago? Leave comments for yourself.