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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Git commits as code review?

7 点作者 rayvega超过 15 年前

3 条评论

gruseom超过 15 年前
The idea here is that when reviewing someone's code, instead of writing up the problems that you found and handing the write-up to the author (which they may or may not understand, and may or may not act on), you actually just fix the code as you go, committing each little change you make with an explanatory comment as the commit message. The author can then look over the history to see not only what the comments were, but exactly what each one means in the code. You're guaranteed that the problems are fixed, and (assuming the original programmer actually does look over the history) the learning value is much higher.<p>I've done exactly this on a couple of occasions and it worked very well. Among other things, it's easier on the reviewer. (Who likes writing up a big document or email? Much better to actually fix code.) Personally, though, I find it more productive to work more collaboratively to begin with.
评论 #885812 未加载
stcredzero超过 15 年前
We are going to be using a code coverage tool in conjunction with our source code management tool to do code reviews. Every branch of every method changed for a particular Change Request will be instrumented with something subclassed from a breakpoint, and the developers will get a randomly assigned "review partner" and they will ensure all of the checked in code is covered by unit tests.<p>The "coverage map" of affected methods is generated automatically, and the insertion of the code probes is also done automatically.
smcq超过 15 年前
We use git commit reviews as our primary review method, it's much lower overhead than sit down code review meetings. On the other hand, it's not quite as thorough, which works fine with a small team that's already high bandwidth.
评论 #886132 未加载