Hacker News new | ask | show | jobs
by m0rde 33 days ago
Not to start a flame war, but this sounds like a problem of monorepos and not git.

If they switched to private packages in separate repos, would that scale better? Would they be hitting the same problems? Would they be hitting different problems?

2 comments

They would be hitting different problems. Taken to a ridiculous opposite extreme, think about your most recent project. Think about having it organized into a separate git repo for every file. One file per git repo. Absolutely ridiculous. You'd need a bunch of glue programs to deal with the pile of git repos you now have. How do you handle the problem of different branches for every file? You need some sort of orchestrator. It's a just a thought experiment so you wouldn't actually do that, but at Google, Facebook, and now OpenAI scale; that gives you some idea of their problem and what they're optimizing for. Orchestrating between a bunch of different repos is a different problem entirely but a monorepo solves a lot of problems while creating others. Some are more solvable than others.
This is what always scared me about monorepos. While I'll never reach the scale of big tech it was always a nagging feeling that I'd hit some limit. I know that is less likely to be a problem with smaller component based repos and if something goes wrong only that component is impacted.