• ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    2
    ·
    1 year ago

    There’s a weird ongoing thing in the programming world where about half of coders think code should be well-commented and the other half not only think that code shouldn’t contain comments but also think that comments are an indicator of professional incompetence (aka a “code smell”). I’ve long noticed that the anti-commenting crowd are also the ones that can’t write very well.

    • kicksystem@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      One way my code improves is by thinking what I need to comment. Then I refactor some and the comments become somewhat redundant.