95 points

I am really happy when people are quite strict in code reviews, it makes me feel safer and I get to learn more.

Nothing worse than some silent approvals with no real feedback. What if I missed something obvious… and now it’s merged.

To be fair, I also enjoy getting my grammar corrected. I’m juggling 3 languages and things can get messy.

permalink
report
reply
33 points

In that spirit, I will call attention to your first sentence, specifically the comma. In my opinion, that can be improved. One of three other constructions would be more appropriate:

  • I am really happy when people are quite strict in code reviews. It makes me feel safer and I get to learn more.
  • I am really happy when people are quite strict in code reviews, because it makes me feel safer and I get to learn more.
  • I am really happy when people are quite strict in code reviews; it makes me feel safer and I get to learn more.

The first of my suggested changes is favoured by those who follow the school of thought that argues that written sentences should be kept short and uncomplicated to make processing easier for those less fluent. To me, it sounds choppy or that you’ve omitted someone asking “Why?” after the first sentence.

Personally, I prefer the middle one, because it is the full expression of a complete state of mind. You have a feeling and a reason for that feeling. There is a sense in which they are inseparable, so not splitting them up seems like a good idea. The “because” explicitly links the feeling and reason.

The semicolon construction was favoured by my grade school teachers in the 1960s, but, as with the first suggestion, it just feels choppy. I tend to overuse semicolons, so I try to go back and either replace them with periods or restructure the sentences to eliminate them. In this particular case, I think the semicolon is preferable to both comma and period, but still inferior to the “because” construction.

I’ve clearly spent too much time hashing stuff out in writers’ groups. :)

permalink
report
parent
reply
8 points

This is what I live for. :D

I agree with most of that. In formal settings, I prefer full sentences with conjunctions; however, choppy sentences are the ones that often end up in my Lemmy comments.

permalink
report
parent
reply
8 points

That only makes sense. We are having a conversation, not creating literature.

permalink
report
parent
reply
6 points

Strange, I get a mild hostility vibe from colleagues if I review too ambitiously.

permalink
report
parent
reply
2 points

Reviews have to be balanced to circumstance. There is a big difference between putting out the sales brochure and the notice on the bulletin board. Likewise in coding a cryptographic framework for general consumption and that little script to create personal slideshows based on how you’ve tagged your photos.

As a general rule, wider distributions, public distributions, and long-lived distributions need more ambitious reviews. If the distribution is wide, public, and permanent, then everything needs very detailed scrutiny.

I have found some success in starting with and occasionally revisiting review goals. This helps create and maintain some consistency in a process that is scaled to the task at hand.

permalink
report
parent
reply
11 points
*

Like the other guy, I also read your comment twice looking for mistakes but found none.
You should of left something to fix!
😏

Edit: I’m glad there so many people who are as passionate about the correct spelling of “should’ve” as I am. I was testing you all, and you passed!

permalink
report
parent
reply
15 points

Correcting the reviewer.
Notes: “should of” isn’t valid, should implies a verb, of isn’t a verb. I expect you meant “should have”. Please recall this in future submissions.

permalink
report
parent
reply
5 points

They should of course keep that in mind, but it’s not that “should” should always be followed by a verb directly. The problem is that “of” in this context is a mishearing/spelling of “have”, so they should in this case have written it like that instead.

permalink
report
parent
reply
3 points
*

Notes: “should of” isn’t valid, should implies a verb, of isn’t a verb. I expect you meant “should have”. Please recall this in future submissions.

😏

permalink
report
parent
reply
2 points

should implies a verb, of isn’t a verb

“should” and “of” should probably be in quotes here?

permalink
report
parent
reply
7 points
*

Notably, a good code review should also bring up the good parts of the submission, and not just concentrate on the errors. Not only does it make the recipient feel better to get positive feedback among the negative, but it helps them learn about good practices too. Just concentrating on the errors doesn’t really tell them which things they’re doing well.

Many reviewers concentrate on just finding mistakes, and while it’s useful it’s sort of the bare minimum; a good code review should be educational. Especially if the submitter’s a more junior coder, in which case it’d also be a good idea to not just outright tell them how you’d fix some problem, but sort of lead them to a solution by asking them questions and pointing things out and letting them do the thinking themselves. But still, experienced coders will also benefit from well-structured feedback, it’s not like we’re “finished” and stopped learning.

permalink
report
parent
reply
2 points

Yes, I tend to do that, and thankfully some of my colleagues do too. Clever but readable solutions, following good and relevant practices, clear documentation, making a good MR description that makes it easier to review, and more.

permalink
report
parent
reply
1 point

That’s great to hear. It’s thankfully becoming more common in general, and we can all do our part in spreading these practices.

I tended to actively evangelize for it when I was managing coders or teams. Unfortunately it’s still not all that uncommon for coders to be downright offensive when giving feedback, like not necessrily quite Linus-level rants but things like “this is idiotic, this is stupid, that’s shit, why would you do that” etc etc. The usual explanation I’ve gotten is that they’re just being “honest” and saying what they think, and it’s not their problem if the reviewee (is that even a word‽ I can’t English today) gets offended. Some even get all huffy about it, like “oh we’re just supposed to coddle them and never say anything negative so their little feefees don’t get hurt?” And I mean, yeah, getting honest feedback definitely a good way to learn, but it’s not like the only way to point out errors or problems is to be a cunt about it.

permalink
report
parent
reply
6 points

Yeah, I learn so much from code reviews and they’ve saved me so much time from dumb mistakes I missed. I’ve also caught no shortage of bugs in other people’s code that saved us all a stressful headache. It’s just vastly easier to fix a bug before it merges than once it breaks a bunch of people.

permalink
report
parent
reply
5 points

I’m juggling 3 languages

We Americans like to forget that anyone might have any trouble understanding English especially in cases of polyglots.

I don’t know which is your native tongue but from this comment it looks like you’re doing a fine job.

permalink
report
parent
reply
2 points

Assuming you have competent leadership, then it wouldn’t be merged if you missed something obvious. I guess you’re saying that you want more positive reinforcement.

permalink
report
parent
reply
56 points

I will correct both + your spelling because it drives me fucking nuts when I can’t find a function or variable due to it being severely misspelled

permalink
report
reply
19 points

Me omw to tell the POSiX guys it’s supposed to be “O_CREATE” instead of “O_CREAT”:

permalink
report
parent
reply
31 points

Chars are expensiv

permalink
report
parent
reply
15 points

Crs r xpnsv

permalink
report
parent
reply
3 points

I stand corrected:

Me omw tell POSiX “O_CREATE” not “O_CREAT”:

permalink
report
parent
reply
43 points

Correcting my code is helpful. The machine didn’t know what I even meant. Computers are interesting and changing rapidly.

Correcting my grammar is an unsolicited English lesson from someone who already knew what I meant. English is not interesting or changing quickly.

permalink
report
reply
11 points

What if your grammar is that bad that people struggle to understand you?

I know someone who is incomprehensible most of the time. I have to ask probing questions just to vaguely understand what they’re trying to communicate. I’ve politely told them more than once about the issue but they never try; they’re not mentally challenged or anything, just an ass.

permalink
report
parent
reply
1 point

Then they couldn’t correct you.

permalink
report
parent
reply
1 point

I’ve never met a native speaker like that, but yeah I think they’re the exception that proves the rule.

permalink
report
parent
reply
11 points
*
Deleted by creator
permalink
report
parent
reply
7 points

Also that person may have known what you meant, but another might not and may have any number of reasons for not asking.

Better communication skills are a worthwhile goal and there’s no good reason to not learn and grow.

permalink
report
parent
reply
1 point
*

I mean, there’s a difference between something being phrased in an odd or confusing way, and a pedantic comment about whether you should use a Latin plural. 90% of the time you get the latter.

permalink
report
parent
reply
3 points

Except for front-end technologies like JavaScript where there’s a new framework every week lol

permalink
report
parent
reply
2 points

Yeah, but what percentage of normal speech is made up by words under 20 years old?

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
1 point

Which is easier - read a 50-year-old letter, or run a 50-year-old program?

permalink
report
parent
reply
2 points

fr fr no cap

permalink
report
parent
reply
25 points
Deleted by creator
permalink
report
reply
21 points

I read your comment twice, looking for any tiny mistake to fix. How thoughtless of you not to include any.

permalink
report
parent
reply
3 points
Deleted by creator
permalink
report
parent
reply
16 points

It’s actually “their’yre” dumby, learn ur words

permalink
report
reply
18 points
*

It’s actually “their’yre” dumby, learn ur words

SOme morans should of staid inn School!!

permalink
report
parent
reply
3 points

get a brane morans

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.2K

    Monthly active users

  • 954

    Posts

  • 36K

    Comments