💾 Archived View for bbs.geminispace.org › u › Morgan › 4477 captured on 2023-11-14 at 10:09:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

➡️ Next capture (2023-12-28)

🚧 View Differences

-=-=-=-=-=-=-

Comment by ☕️ Morgan

Re: "Semantic Code Reviews"

In: s/programming

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 :)

☕️ Morgan

Aug 18 · 3 months ago

1 Later Comment

👻 mediocregopher · Aug 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.

Original Post

🌒 s/programming

— 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 · 2 comments · Aug 18 · 3 months ago