r/coding • • Aug 22 '17

You're using git wrong

https://dpc.pw/blog/2017/08/youre-using-git-wrong/
30 Upvotes

71 comments sorted by

View all comments

Show parent comments

-5

u/dpc_pw Aug 23 '17

I think you've missed the point. The problem is not being able to fix the code inline in Gerrit/Phabricator/Github code review UI, and having to describe required changes in a human language instead, then waiting for the author to implement them, and then having to double check if they were implemented like you wanted.

18

u/recycled_ideas Aug 23 '17

Which is intentional.

The point of a review is to transfer knowledge.

Yes, explaining to someone else how to fix the code is hard, but it's the entire point of the process.

-3

u/dpc_pw Aug 23 '17

The transfer of knowledge is very valuable. But very often the actual fix is a better explanation, than the description. To give a succinct example:

This method should be private.

is much longer to write and read than looking at the diff that is making the function private.

Or:

Here I have quickly changed your code to use an utility class Foo. Please use it next time.

is better than (obviously exaggerated):

Please use `Foo` utility class that you've never seen before. You might find some examples in a file `src/java/ourorg/module /submoduley/foo.java`, though it can be a little bit tricky. Just figure it all out. There's no documentation on how to use it yet. If you have troubles, good luck catching me between my meetings this week, LOL.

6

u/Ansjh Aug 23 '17

Your exaggeration covers a bunch of different unrelated issues. Why not just say this, for example:

Please use the utility class Foo here, otherwise you're duplicating code.

Additionally, link to documentation as well. (If that doesn't exist, that's a different unrelated problem, and even in that case you could just link to the file/line of the class itself.)