Live data from Hacker News

Code review can be better

tigerbeetle.com

21–30 of 253 posts

Re: Code review can be better

#22
It's so cool that Git is considering first class change IDs!! That's huge! This sounds similar to what we had at Facebook to track revisions in Phabricator diffs. Curious if anyone knows the best place to read about this?

Re: Code review can be better

#25
post #18

Essentially, you are turning fork/branch induced changes to "precommit" review like workflow which is great. I was on a lookout for best "precommit" review tool and zeroed on Magit, gitui, Sublime Merge. I am not an emac user, so i'll have to learn this.

In theory this functionality would be best suited as a git subcommand. I suggest `git-precom` for conciseness.

Git already has `git add -p` but demands a lot from user.

Re: Code review can be better

#26

I use the GitHub Pull Request extension in VSCode to do the same thing (reviewing code locally in my editor). It works pretty well, and you can add/review comments directly in the editor.

It's better, but still quite deep vendor lock-in (in both GitHub and VSCode).

JetBrains IDEs can do the same.

Re: Code review can be better

#28

Just taking a step back, it is SO COOL to me to be reading about stacked pull requests on HN. When we started graphite.dev years ago that was a workflow most developers had never heard of unless they had previously been at FB / Google. Fun to see how fast code review can change over 3-4yrs :)

I miss the fig workflow :-(

Re: Code review can be better

#29
I was recently looking for something that at least presents a nice diff that resembles code review one in neovim.

This is a pretty cool tool for it: https://github.com/sindrets/diffview.nvim

On the branch that you are reviewing, you can do something like this:

:DiffviewOpen origin/HEAD...HEAD

Post reply on HN