3 ms·
Malarky. >> With multiple repos... having to split a project because it’s too big or has too much history for your VCS is not optimal... With a monorepo, proje
by moron4hire 12y ago
Malarky.
>> With multiple repos... having to split a project because it’s too big or has too much history for your VCS is not optimal... With a monorepo, projects can be organized and grouped together in whatever way you find to be most logically consistent, and not just because your version control system forces you to organize things in a particular way.
Uuuuh, if your one project has to be split because it's too big for your VCS, then you aren't going to make that thing smaller by putting multiple projects in with it.
>> A side effect of the simplified organization is that it’s easier to navigate projects.
That's a UI issue. Build a better UI, don't use a dirty hack, especially one that has other implications.
>> A side effect of that side effect is that, with monorepos, it’s often the case that it’s very easy to get a dev environment set up to run builds and tests.
With the growing trend of package managers being able to install dependencies straight from a git repository, I don't see this being an issue much longer. Again, this is a UI issue.
>> This probably goes without saying, but with multiple repos, you need to have some way of specifying and versioning dependencies between them.
Yeah, no shit, that's just good software development. The argument here is that a monorepo lets you be lazy.
- durin42 12y agoYou're missing a huge part of the benefit, which is that when you go and do internal API cleanups you don't have an awkward dance across N repositories, you just have a change that's atomic across the entire project. It's a huge benefit to be able to have all your mobile apps and web apps and whatever in the same repo, because then you can easily see who calls what, and how various RPCs are used, etc. Don't knock it until you've tried it. (I used to think monorepos were dumb, but over the course of several years I came around.)
- moron4hire 12y agoThat's what I'm talking about being lazy. These companies provide public APIs and we all will have the same headaches of having to update our software to those APIs. By dogfooding your own APIs in the same way your customers eat them, you force yourself to have to communicate change correctly.
- plorkyeran 12y agoYou say "lazy", I say "not wasting time on unnecessary things". Versioning dependencies is something done to solve problems, not an inherently good moral imperative.