1178
Comenting code (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] some_guy@lemmy.sdf.org 21 points 1 week ago* (last edited 1 week ago)

Checked one of mine:

# get path to the download directory

Oh, ok.

[-] darkpanda@lemmy.ca 24 points 1 week ago

The code directly below:

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

Programmer Humor

32197 readers
599 users here now

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

Rules:

founded 5 years ago
MODERATORS