• some_guy
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    5 months ago

    Checked one of mine:

    # get path to the download directory

    Oh, ok.

    • darkpanda@lemmy.ca
      link
      fedilink
      arrow-up
      24
      arrow-down
      1
      ·
      5 months ago

      The code directly below:

      function getPathToUploadDirectory() {
        return config.tmp_path
      }
      
    • Omgpwnies@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      If your company uses some sort of code checking tool on PRs, there may be a requirement that all functions have a docstring, even if it’s obvious what it’s doing. Leads to silly comments like this quite often