1168
Comenting code (lemmy.ml)
submitted 10 months ago by Vordimous@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] some_guy@lemmy.sdf.org 21 points 10 months ago* (last edited 10 months ago)

Checked one of mine:

# get path to the download directory

Oh, ok.

[-] darkpanda@lemmy.ca 25 points 10 months ago

The code directly below:

function getPathToUploadDirectory() {
  return config.tmp_path
}
[-] Omgpwnies@lemmy.world 1 points 10 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

this post was submitted on 28 Sep 2024
1168 points (100.0% liked)

Programmer Humor

37617 readers
50 users here now

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

Rules:

founded 6 years ago
MODERATORS