1 point

@Vordimous @linuxgal when I see this sort of thing when reviewing PRs, I write words to the effect of “tell me WHY it’s doing that, not WHAT it’s doing”. The “what” is usually obvious from the code and thus not worthy of comment. The “why” will enlighten your colleagues (and future you).

permalink
report
reply
2 points

@Vordimous Wait for daylight saving time…

permalink
report
reply
1 point

Is that when all of the devs write the comments on the line after the code?

permalink
report
parent
reply
2 points

When you ask a Dev to test their own code

permalink
report
reply
2 points
*
Removed by mod
permalink
report
reply
1 point
Deleted by creator
permalink
report
reply
1 point

But it’s also important to learn that comments should be brief and concise. We have one file from an ex-dev in which there are 750 lines of code and 2000 lines of comment, when someone wants to maintain this code they always have a hard time because this many comments are taking up so much screen real estate that you can’t find the code that actually does stuff

permalink
report
parent
reply
2 points

Gotta get a 4k monitor

permalink
report
parent
reply
1 point

I only have a 3k monitor, and I can manage it. Sometimes I comment line-by-line even.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5K

    Monthly active users

  • 1.6K

    Posts

  • 35K

    Comments