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

2

u/Vi0lentByt3 Aug 23 '17

TL;DR I disagree with your article and think that you have confused the fundamental aspects of collaboration and general software development in a large organization with just the overall pain of having to do quality work.

I would like to know what you propose when you make these points:

  1. have a repo per project or mono repo? you have just described the only two scenarios that you could have in repos and projects together, so what is the third option?

  2. one repo per branch? this is very common in git and considered its main advantage where each person can holistically make changes completely isolated from anyone else's changes, not using this feature is closer to a CVS.

  3. one process for code review helps standardize the code and helps to ensure it conforms to the goals of your team i.e. the qualities you want for your codebase.

It would appear that you are confusing the fundamental components of git and collaboration in general that you simply cannot bypass no matter what tool you use. You still need one central point for all the code to live because that is your application.

The autonomy of a distributed model comes in the form of being isolated from the changes made to the codebase that you have to deal with in CVS systems, in git you only bring in the changes you want. The problems you state with code reviews taking too long, there overall process, and the tools available are things you will face at any organization. Code review tools allow for a historical reference outside of the codebase without having to use version control because version control does not care about code reviews, it cares about change management. Errors in the branches(bugs are not mistakes! See JBrains talk on integration tests) are usually from poorly written code and testing, not your version control.

If changes should start from the bottom up, where do they go? how can everyone's code converge and be combined if its not going to a central location? how do you have multiple branches deploying to a single unit of software(I understand if you a modular system this would be okay, but sometimes you need a monolith, ie a kernel). I do not think git propagates any of the problems you mention in the article, in fact it usually helps most of them. I think if you isolated all the issues you talk about and really look into their root cause, git would rarely, if ever be the culprit.