To comment or not? A data-driven look at developer attitudes toward code comments

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 3

  • @SirWolf2018
    @SirWolf2018 4 роки тому

    Noone mentions the Clean Code book here?

  • @xoxo-sf1zg
    @xoxo-sf1zg 5 років тому +3

    Thank you! 😎

  • @olekss
    @olekss 5 років тому +3

    My subjective opinion is that we shouldn't use any comments in the committed codebase. Main reason is that there is no way to validate the comment if it's correct.
    Compiler doesn't care about it, testers don't care about it, even developer don't bother them self's to change the old comments when change the code.
    At the end you never can trust the comment and still need to read code.
    If you can't understand what the code is doing, then how you are going to change it, you are the right person for that job.