this post was submitted on 28 Sep 2024
1166 points (99.0% liked)

Programmer Humor

32692 readers
274 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 2 months ago* (last edited 2 months ago) (2 children)

Checked one of mine:

# get path to the download directory

Oh, ok.

[–] [email protected] 21 points 2 months ago

The code directly below:

function getPathToUploadDirectory() {
  return config.tmp_path
}
[–] Omgpwnies 1 points 2 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