> We found files shown earlier in a PR to receive more comments than files shown later I often stop reviewing a PR if I have too many comments on it already that need to be addressed so I wouldn't say this is necessarily what it sounds like (later files get less attention). Also, a comment on an early file might address a concern in a later file that will be fixed by the time I actually review the later files. That s…
The impact of file position on code review
21–30 of 38 posts
Re: The impact of file position on code review
#22People review files top down? I can't imagine doing that. I glance at the list, and try to spot the highest level change (schema changes, interfaces, etc) and start there. If the core idea is wrong no point wasting time on the rest. Then I go up from there to implementation details and tests. Often jumping between modules or functions, coming back to some things later when I have more context.
Re: The impact of file position on code review
#23Re: The impact of file position on code review
#24IMO file/folder structure in a project is a geographic mapping exercise. It's not that far off from city planning. I think it's so important to design the structure and naming conventions of a project with the ultimate goal of aesthetically-pleasing, human-understandable spatial organization of digital artifacts. You "go here" to "see that". This "lives here". You travel to the destination of the thing you're looking…
Re: The impact of file position on code review
#25Earlier quoted context omitted.
Similar, if you're going up against a promotion committee, or parole board in jail, you want to go when the judges have been recently fed.
Wasn’t that debunked?
Re: The impact of file position on code review
#26Re: The impact of file position on code review
#27> We found files shown earlier in a PR to receive more comments than files shown later I often stop reviewing a PR if I have too many comments on it already that need to be addressed so I wouldn't say this is necessarily what it sounds like (later files get less attention). Also, a comment on an early file might address a concern in a later file that will be fixed by the time I actually review the later files. That s…
Does that mean you do the thing where I respond to your review, request a re-review, then get comments about code that was already there a week ago?!
Re: The impact of file position on code review
#28People review files top down? I can't imagine doing that. I glance at the list, and try to spot the highest level change (schema changes, interfaces, etc) and start there. If the core idea is wrong no point wasting time on the rest. Then I go up from there to implementation details and tests. Often jumping between modules or functions, coming back to some things later when I have more context.
Re: The impact of file position on code review
#29I've recently started using Github code reviews for a lot of C++, and one thing that I wish it would do is show the header (.h) files before the implementation (.cc) files. Small PRs help, but I often end up just opening a handful of windows to have everything open at once.
Re: The impact of file position on code review
#30I've recently started using Github code reviews for a lot of C++, and one thing that I wish it would do is show the header (.h) files before the implementation (.cc) files. Small PRs help, but I often end up just opening a handful of windows to have everything open at once.
You can't do that in github as far as I know, but you can get git to display diffs that way (eg. for local review or email based workflows). You have to use a git "orderfile". Example: https://gitlab.com/nbdkit/nbdkit/-/blob/master/scripts/git.o... We found it useful to display header files, interface files and documentation first, but maybe the linked paper will make us review that!
The default, Myers, is from 1986!