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

6

u/jonyeezy7 Aug 22 '17

Very interesting read. If this was on Medium, I'd give you claps.

Did you ever had a fix that your colleges are waiting for

That's what I've encountered alot.

Maybe i still can't picture the whole DVCS. But it seems that would still be a problem. If I'm waiting for someone who is making a big change on the exact codebase I'm working on, the distributed way would not fix it as I'll still have to wait for the PR.

Bottom-up seems bit too heavy for my scenario personally. We don't have a release manager. Everything is on a continuous deployment. So this kind of heirachy approach sounds slow.

I love the idea of across. And totally agree we spend so much time being pedantic in PR rather than the outcomes. Wish we could all do PR that way. We usually deal with 2-5 PRs in one day and relying on all reviewers to do the in-depth testing will be a big overhead. But i guess that's the pace we've set. But wish we could go down the approach you mentioned.

I reckon the mindset of a DVCS can still be applied to the concurrent model, ie across and bottom up.

Good article.

7

u/Jestar342 Aug 22 '17

PRs aren't a git thing. There's no git pull-request command (out of the box). pull requests are just an organisational thing.

It is far more common for an org to use a central repo - yes, even when using a DVCS like git - as it just makes so much more sense to have one repo that is the source of truth. Hell, even when using pull requests and other management tools it's a safe bet there is a central repo. After all, the build has to come from somewhere and it's just logical to keep building from the same repo.

13

u/flukus Aug 23 '17

1

u/Jestar342 Aug 23 '17

Yes, which is very different from what people assume a pull request is (a la github with all the tooling github provides):

Summarizes the changes between two commits to the standard output, and includes the given URL in the generated summary.

In other words, it's a patch file and a URL.

1

u/dpc_pw Aug 23 '17

Thanks.

Especially for smaller (like, let's say < 10 people team), there's not much hierarchy to build for the bottom-up direction to make any difference. I'd say 10 people is a group that could have a leader, and then 10 groups builds a higher level group (100 people), and then another level would be 10 groups like that (1000 people total). Obviously in the real organization, the groups would be more functional, not just equally sized and artificial.

1

u/andschwa_ Aug 23 '17

In a DVCS system you'd literally just apply the patches your coworker is working on, directly, skipping the centralized repo.