Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

13
  • 49
    This very much. Remember that its not just you and the writer who will be reading this code. It will also be some random intern in 10 years, so you want to make sure he has a chance of being able to understand whats going on. Commented Dec 15, 2016 at 21:30
  • 2
    good answer. it depends on the purpose of "code review". readability is one thing, structure another - but their very closely related. fwiw I'm working with some open source written by MAJOR corps, and it's almost unreadable because the var and fn names are so hair-brained. Commented Dec 15, 2016 at 22:41
  • 19
    @DavidGrinberg For all practical purposes, "you in six months" is a completely different person. Commented Dec 15, 2016 at 23:40
  • 2
    Put the code away for some time (long enough for him to not remember everything). Ask the original coder to review it. See if HE understands it. Commented Dec 16, 2016 at 4:21
  • 4
    I disagree that code review "isn't" for finding bugs. It often does find bugs, and that is a very powerful and useful aspect of code reviews. Better yet, it helps find ways to avoid bugs entirely in future code. The point is perhaps overstated, and should be that it's not exclusively to find bugs! Commented Dec 16, 2016 at 15:32