3 ms·
Hold on, are we talking about monorepos, ie a set of projects with shared change history (and possibly 'build it all' type tooling) or single monolithic apps?
by jayd16 8y ago
Hold on, are we talking about monorepos, ie a set of projects with shared change history (and possibly 'build it all' type tooling) or single monolithic apps?
I'm seeing these two things conflated in this thread.
- eadmund 8y agoIn fairness, a single repo does encourage a monolithic architecture (even though one can have multiple binaries inside a single repo), just as a monolithic app does encourage a lack of modularity (even though one can write a single app composed of well-chosen modules).
- olingern 8y agoTo me, a monorepo exists of a set of related or semi related services or runtimes that can operate autonomously, but have a dependency on their siblings to operate correctly. In some cases, this could be two separate backend projects where you want to re-use the same deployment pipeline. Often, I find that API wrappers are something that I share across frontends and backends in the JS world, so it often makes sense to separate my projects into: - backend - frontend - common In Typescript I really like this pattern and can namespace shared types so that it’s very clear to the future reader that this type is probably used outside of the current context. So, to reply to your comment — I think the term “monorepo” can encompass a lot of different project types. I think Dan Luu covers the bases quite well here: https://danluu.com/monorepo/ https://danluu.com/monorepo/