3 ms·
It can work either way. There are pros can cons to both ways, code organization needs to be done correctly either way. Nothing about either ensures your code is
by bluGill 8y ago
It can work either way. There are pros can cons to both ways, code organization needs to be done correctly either way. Nothing about either ensures your code is a good modular structure vs a haphazard mess. In most cases code in fact has a modular structure behind it that is followed - but the structure is not always good (something that is easy to see in hindsight, but the wrong rules were put in place early and now it is hard to change)
Mono repo makes violation of modular rules easier, just link it in - in a complex project odds are nobody will notice. However this doesn't mean monorepo is bad, it just needs that you need to be careful to ensure the rules are written down.
Multi-repo makes violation of those same rules harder - you have to make a bunch of changes to ensure that the bad dependency is in the environment. This hints at the downside of multi-repo: you need to have some sort of dependency management system to ensure that the right version is there when you build.
- ivan_gammel 8y agoDependency management systems are now a standard thing and they are integrated with CI servers very well - I would not say that the need to use it is a downside.
- bluGill 8y agoDepends on your target environment. Some targets/languages have great eco systems, some do not.