TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Do's and Don'ts of Code Review

2 点作者 supjeff超过 4 年前
As a long-time developer who has reviewed a lot of code, and had a lot of code reviewed, I would like to share some of my Dos and Don&#x27;ts of code reviews:<p>DO point out logical errors.<p>DO point out possible memory leaks or performance shortfalls.<p>DO give examples for resolving potential issues.<p>DO ask questions related to functionality.<p>DON&#x27;T withhold approval for stylistic deviations.<p>DON&#x27;T withhold approval for stylistic deviations.<p>DON&#x27;T withhold approval for stylistic deviations.<p>DON&#x27;T withhold approval for stylistic deviations.<p>Thank you!

1 comment

bitfield超过 4 年前
This depends on the context, though. In my open source projects, I have many contributors, so it&#x27;s important to maintain a consistent style throughout (for example, naming conventions, so that the same data is always called the same thing).<p>A commercial software project will also have a &#x27;house style&#x27; which all contributors are required to follow. It&#x27;s okay to withhold approval on this basis.<p>What I think you&#x27;re saying, and I agree with it, is &quot;don&#x27;t withhold approval just because this isn&#x27;t <i>your</i> style&quot;.