💾 Archived View for bbs.geminispace.org › u › Morgan › 4477 captured on 2024-05-12 at 19:19:18. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
Yes, it helps a lot to set the tone. "Optional:", "If you like:" and "Nitpick:" are good. The last ackowledges that it's an annoying fix to apply, which goes some way to making it less painful to do so :)
2023-08-18 · 9 months ago
👻 mediocregopher [...] · 2023-08-18 at 15:54:
Tip 1) Don't use "you" within code-review comments. It can come off as accusatory, and moreover it's not even really accurate since the code is also the reviewer's responsibility. So instead of:
"You bungled the thing here"
I would just do:
"This thing is bungled in this way"
"We" statements also go a long way. Rather than:
"You should format your comment in this other way"
do:
"We usually format our comments in this other way"
Tip 2) There are two kinds of changes: changes which will be easy to make later, and changes which are hard to make later.
Changes which are easy to make later are stuff like renaming a variable within some small scope, or the organization of some logical thread into various functions.
Changes that are hard are stuff like database schemas, public APIs, and shared package functionality. Basically stuff which will be depended on from multiple spots.
I tend to not leave comments about the former. If the code works, even if I don't like it, it can be changed later if it turns out to matter. The latter are the more important ones. The more a thing is dependended on, the more important that it's correct the first time.
— gemi.dev/cgi-bin/waffle.cgi/article?https%3A%2F%2Fwww.m31coding.com%2Fblog%2Fsemantic-reviews.html
Semantic Code Reviews — I like the recommendation in this article to 'label' your comments and may try to bring that to work. What other practices to people use when doing code reviews?
💬 ahappydeath [mod] · 2 comments · 2023-08-18 · 9 months ago