r/ProgrammerHumor • • 27d ago

Meme theJoysOfMonorepo

Post image
3.9k Upvotes

106 comments sorted by

View all comments

Show parent comment

28

u/ACoderGirl 27d ago

OP's complaint isn't a mono repo one. You only get merged conflicts if people changed the exact same files as you. That will happen regardless of repo type. All you can do is avoid having multiple devs working in the same area at the same time.

I work in a mono repo and it's amazing. Alternatives like git subrepos suck and are confusing. While you do have more instability because of changes in dependencies, it also means you're catching those issues earlier, which is easiest. It's easier to prevent those incompatibilities in a mono repo due to the ease of running tests at the current main version. Also easier to fix other team's issues and extend tooling and such because you don't need to figure out their repo and as much of their workflow, etc.

5

u/ElCthuluIncognito 26d ago

For me it’s having everything in a review in one place. So much better, and contrary to OPs experience, has made getting a review markedly easier. I just have to chase one person instead of putting together a strike team every time. Though that may be more because it came together with dissolving hard lines between projects on our small team (Conways law in full effect)

2

u/minequack 24d ago

And you understated it. You only get merge conflicts if people changed the exact same lines as you.

0

u/BigBoetje 23d ago

You get conflicts for changes in the same file but most tools can handle changes for different lines without issue.

1

u/minequack 23d ago

No, same lines. 

  Merge conflicts often happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file.