Nice post. However, imho with a good enough writing style it should be possible to convey the purpose of the text without an explicit label.
Unfortunately, it’s extremely common for less senior people to interpret suggestions from more senior people as instructions to be followed even if they aren’t worded as such. Having a consistent, explicit, and unambiguous way of distinguishing between these scenarios that everybody on the team can follow easily is valuable. You can’t rely upon all developers to be good writers or even good readers, especially across…
Semantic Code Reviews – Simple and direct comments without drama
31–40 of 49 posts
Re: Semantic Code Reviews – Simple and direct comments without drama
#32The only one that makes sense to me is the "suggestion", to clearly indicate that it is OK if the code is not changed or that the change is not that important. For the rest, isn't it obvious when an question is a question or a hint is hint? If you understand English then the meaning of each comment should be clear.
See that's where your assumptions already fall apart; keep in mind a lot of developers do not have English as their first language, let alone the cultural differences and nuances if they seem to have a good grasp of the language. "Can you change this please?" can be seen as a friendly request by one, a helpful suggestion that can be ignored by someone else, or a passive-aggressive "You Have To Change This Or Else" reply by yet another. It's not as straightforward as you wish it was or as you experience it to be.
Besides, English is not even a good international language; it's three different languages in a trenchcoat.
Re: Semantic Code Reviews – Simple and direct comments without drama
#33The question label is interesting, since I often ask questions in code review. However, the answer is only sometimes relevant in terms of just learning something. Someone else reading the code having a question is a signal that the code may not be as obvious as it should be and therefore should be changed (if only by replying to the question in the form of an added comment). Of course sometimes the reviewer is just d…
Like, "what does ??= mean? I've never seen it before" in modern JS. I've had to adjust to code like that for a bit because I've been doing JS since ES3/4 and may have missed some developments (or the general availability of those).
Re: Semantic Code Reviews – Simple and direct comments without drama
#34Or just criticize and take criticism like its part of the job. Being perfect in it has huge costs.
After reading a round of feedback, I frequently had to make a pause, 30 minutes minimum. I tried to control my will to respond at the same tone, not always managing to hold the impulse. There was a lot of rumination and resentment too, not only on my part, but on the rest of the team's. Such a huge waste of mental energy.
Pretending that people is supposed to behave like a robot, dismissing their emotions etc, IMO is a mistake and, sometimes, an excuse used by people who feel good treating others badly.
Re: Semantic Code Reviews – Simple and direct comments without drama
#35Nice post. However, imho with a good enough writing style it should be possible to convey the purpose of the text without an explicit label.
This "good enough writing style" must also be able to cross cultural borders - I dare to say even journalists don't get it right most of the time: * I've heard Kiwis say "F*ck you?" in lieu of "Seriously?" * A Brit who says "That is an interesting solution!" usually does not feel intellectually stimulated by the solution but is conveying that it is utter garbage. Thus, I very much like the proposed idea of well-defin…
Re: Semantic Code Reviews – Simple and direct comments without drama
#36Nice post. However, imho with a good enough writing style it should be possible to convey the purpose of the text without an explicit label.
Unfortunately, it’s extremely common for less senior people to interpret suggestions from more senior people as instructions to be followed even if they aren’t worded as such. Having a consistent, explicit, and unambiguous way of distinguishing between these scenarios that everybody on the team can follow easily is valuable. You can’t rely upon all developers to be good writers or even good readers, especially across…
And they might very well be! But just make sure you get a rapport with the reviewed party, and prefix or suffix the comment with a "just a suggestion" or an explicit "I'm not asking you to act on this remark". With a semantic review, you can shorten it to "nit:".
Re: Semantic Code Reviews – Simple and direct comments without drama
#37Earlier quoted context omitted.
I'd previously tried Conventional Commits but I found the number of labels they suggest too many to keep in my head. The labels in post map well to how I think about comments.
There is a chrome plugin for this that is awesome. I started using it and one of the things i saw is that the amount PR's that I block went down significantly. Because i will classify block or non blocking per issue so don't end deciding at the end based on the amount. So for example something that has 10 nitpicks I will let it pass because all it tells me is i'm a dick :)
Link?
Re: Semantic Code Reviews – Simple and direct comments without drama
#38Respectful agreement: I can see how this would work well to encourage the encoding of correct tone in comments, which typically lack the ability to convey that information. Whimsical analogy: The Elcor in Mass Effect adopted a similar approach to manage communicating with other races who lacked their ability to communicate nuance through scent and microgestures. > Elcor speech is heard by most species as a flat, pond…
Re: Semantic Code Reviews – Simple and direct comments without drama
#39Nice post. However, imho with a good enough writing style it should be possible to convey the purpose of the text without an explicit label.