• fkn@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    This is a pretty ridiculous position to take but if you believe it then I’m glad you write the comments you do.

    There is an argument that commenting on the lack of expected code is valuable for this reason, but it certainly isn’t true in all situations.

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

      We can agree on “not all situations”. Often the answer to “why did we do it this way?” is blazingly obvious, and no one wants a comment.

      But we all know that sometimes the “why” isn’t obnoxious at all.

      As far as I can tell, developers who do believe in self-documenting code either haven’t learned the power of “why?”, or they have a secret technique for encoding “why?” into their code structure.

      If it’s the second thing, I would be delighted to be brought in on it. (No sarcasm. Maybe I’ve missed a trick here.)