• Omgpwnies@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      17 minutes 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

    • darkpanda@lemmy.ca
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      19 hours ago

      The code directly below:

      function getPathToUploadDirectory() {
        return config.tmp_path
      }