1230
More the merrier (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] philm@programming.dev 1 points 1 year ago

I think even the second comment is not that helpful.

Just use (boolean) variables that phrase what your comment would explain, often more concise and better to read IMO. Also if the logic is more complex compose multiple named (boolean) variables. I think comments seldom make any sense at all (function doc is a one of the rare cases, mostly for the user of the library in the IDE).

this post was submitted on 20 Aug 2023
1230 points (98.9% liked)

Programmer Humor

19821 readers
264 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS