Live data from Hacker News

Conventional Comments

conventionalcomments.org

21–30 of 74 posts

Re: Conventional Comments

#21
post #11

This is just a hack to the problem that most people can’t write and don’t know how to write something that’s valuable to the reader. Just put some thought and care into the comments.

Disagree: if most people can't write, then giving them a template that allows them to express themselves efficiently is an excellent idea.

Re: Conventional Comments

#22
post #20

I'm guessing this is about Code Review comments? I always assume my comments on others' PRs (and other people's comments on my Code Reviews) are "suggestions (non-blocking)", unless indicated otherwise . Shouldn't that be the default, really?

Don't the tools you use allow for selecting whether a comment is blocking or not? This is like the #3 feature of code review software. #2 would be the "approve" button, and #1 would be showing the diff.

Re: Conventional Comments

#23
post #3

I get the ones where you're suggesting alterations to the code, but having "praise: You did great here" or "chore: Could you run the tests" sounds weirdly robotic to me

Disclaimer: I am a coworker of the author.

I like Praise. We don’t give it often enough and if someone does something awesome like simplifying complicated tests, removing dependencies or works smart and not hard, it is due.

While the conventional comments give a nice framework, nothing stops someone from adding a cheerful gif to the body of that praise.

Even on larger reviews it is nice if you scroll through 10 nitpicks, 20 suggestions and 5 questions, if you see the occasional praise.

Re: Conventional Comments

#24

Only tangentially relevant: I hate the word 'nitpick' (bad experience with small insects - thinking about nits makes me itch), but I don't know any other word for these "small, trivial, but necessary changes." Does anyone have alternative words they use in reviews instead?

Thesaurus gave me carp and quibble. I am going to use carp from now on.

Re: Conventional Comments

#25
post #12

When leaving review comments our internal system is to use a blocking/non-blocking flag along with the classic three RFC keywords (MAY/SHOULD/MUST - often in bold) as two examples: You MAY wish to improve readability here by binding these values to a local variable We're using string building in this query with user input we MUST not allow any SQL injection routes.

Uh I like the idea of RFC keywords. For reference the RFC2119 which defines them:

https://tools.ietf.org/html/rfc2119

Re: Conventional Comments

#26
post #25
post #12

When leaving review comments our internal system is to use a blocking/non-blocking flag along with the classic three RFC keywords (MAY/SHOULD/MUST - often in bold) as two examples: You MAY wish to improve readability here by binding these values to a local variable We're using string building in this query with user input we MUST not allow any SQL injection routes.

Uh I like the idea of RFC keywords. For reference the RFC2119 which defines them: https://tools.ietf.org/html/rfc2119

Feel free to steal it - we've found it works pretty well!

Re: Conventional Comments

#27
I agree with the vast majority of this, but I have a bad reaction to “praise” and the idea that you should try to have one per review. I hate praise that feels forced, and it seems like this kind of practice would make it seem quite forced.

I feel you could just say something like “good idea” and it would be fine without the prefix. Especially if your review tool of choice has a concept of actionable vs non-actionable comments, like Gerrit and resolved/unresolved comments.

Re: Conventional Comments

#28
post #20

I'm guessing this is about Code Review comments? I always assume my comments on others' PRs (and other people's comments on my Code Reviews) are "suggestions (non-blocking)", unless indicated otherwise . Shouldn't that be the default, really?

If you use gitlab for code reviews, it's actually the opposite. Each comment thread prevents a merge unless you hit the "Resolve thread" button. It's configurable, but AFAIR it's Gitlab's default.

Even though I also often use Github and Gerrit at my current job, everywhere we observe that convention that a comment is considered blocking unless indicated otherwise. This is because ~80% are typically blocking.

Re: Conventional Comments

#29
It seems I disagree w/ many points.

    > - Leave actionable comments
    > suggestion: This is not worded correctly.
    > Can we change this to match the wording of the marketing page?
If I already know how it should be, I prefer to quote it right away and save work, instead of asking and leaving room for misinterpretation. Asking also seems dishonest if I'm not truly inviting a discussion. I would still add a rationale so others can correct me though ("Changing this to match the wording on the marketing page").

    > - Combine similar comments
Sometimes it's better to be repetitive in the name of exactness, because most review tools are line-oriented. Otherwise I have to write a comment "See lines A, B, C, D, E", and the person asking for the review now has more work to do searching all the instances.

    > - Replace “you” with “we”
Better yet, I replace all pronouns w/ "this". Criticise the work, don't make it personal if it's not necessary. "We" feels forced team-building, and dishonest if I'm not actually going to put in work.

It seems these practices are created because people are using reviews as some form of conversation, and then everybody is stepping on egg shells. I believe if the entire team agrees to see it as just annotations (it's not a performance evaluation, leave your ego at the door, etc) these problems are avoided.

(I can see "why" you need these guidelines though, I guess it depends on what kind of work culture you have, company size, and so on.)

Re: Conventional Comments

#30
post #8
post #3

I get the ones where you're suggesting alterations to the code, but having "praise: You did great here" or "chore: Could you run the tests" sounds weirdly robotic to me

It reminds me of the Elcor from Mass Effect. The problem they face is similar to textual comments: Elcor cannot emote in a way that's detectable to non-Elcor, so when communicating with alien races such as humans, they have to prefix every utterance with an emotional descriptor. E.g., "Pleased greeting: Human, it is always good to see your kind."

Oddly, this has made me want to try Mass Effect.
Post reply on HN