• @ruekk@lemm.ee
    link
    fedilink
    English
    97 days ago

    Self documenting code is a myth as what’s self documenting to one person is not to the next. Code comments and process/workflow documentation is needed for a healthy codebase.

    • @jimmux@programming.dev
      link
      fedilink
      17 days ago

      I thought the same, until I spent a few years on a codebase where self-documenting code was enforced with detailed code reviews. That does a very good job of clearing up the ambiguity.

      If you can’t get that kind of review, then by all means use comments.

      • @zalgotext@sh.itjust.works
        link
        fedilink
        27 days ago

        Try handing over your “self documenting code” to a junior dev who doesn’t know the language it’s written in and see how far they get with it.

        Now hand that exact same codebase with comments to the same junior dev, and I guarantee you they’ll get further than without the comments.