this post was submitted on 18 Jul 2024
130 points (97.1% liked)

Programming

17424 readers
24 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 
  • Facebook does not use Git due to scale issues with their large monorepo, instead opting for Mercurial.
  • Mercurial may be a better option for large monorepos, but Git has made improvements to support them better.
  • Despite some drawbacks, Git usage remains dominant with 93.87% share, due to familiarity, additional tools, and industry trends.
(page 2) 17 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 4 months ago (1 children)

What kind of RCS is used always depends on the organisation. We are actually using GIT and SVN, and both make sense for the departments that are using them.

[–] [email protected] 13 points 4 months ago (5 children)

Serious question, why do they use SVN, as in what does SVN better than Git for the department using it?

[–] [email protected] 9 points 4 months ago (2 children)

While I'm not using it, since we started our small-team hobby project in git and moving away from it would be a bother, there is one use-case of SVN that would save us a lot of headaches.

SVN being centralized means you can lock files. Merging Unity scenes together is really pain, the tooling mostly doesn't work properly and you have no way how to quickly check that nothing was lost. Usually, with several people working on a scene, it resulted in us having to decide whose work we will scratch and he will do it again, because merging it wouldn't work properly and you end up in a situation where two people each did hundreds or thousands of changes to a scene, you know that the Unity mergetool is wonky at best, and checking that all of those changes merged properly would take longer and be more error prone than simply copying one persons work over the other.

We resorted to simply asking in chat if anyone has any uncommited work, but with SVN (or any other centralized VSC, I suppose) we wouldn't have to bother with that - you simply lock the scene file and be safe.

load more comments (2 replies)
[–] [email protected] 4 points 4 months ago

Because we always used it!

[–] [email protected] 18 points 4 months ago

The manager likes it.

load more comments (2 replies)
[–] [email protected] 3 points 4 months ago

And google uses Piper to do the same thing

https://dl.acm.org/doi/10.1145/2854146

[–] [email protected] 11 points 4 months ago (1 children)

Mercurial does have a few things going for it, though for most use-cases it's behind Git in almost all metrics.

I really do like the fact that it keeps a commit number counter, it's a lot easier to know if "commit 405572" is newer than "commit 405488" after all, instead of Git's "commit ea43f56" vs "commit ab446f1". (Though Git does have the describe format, which helps somewhat in this regard. E.g. "0.95b-4204-g1e97859fb" being the 4204th commit after tag 0.95b)

[–] [email protected] 15 points 4 months ago (11 children)

I suspect rebasing makes sequential commit IDs not really work in practice.

load more comments (11 replies)
[–] [email protected] 36 points 4 months ago

I'm pleased to report that git has made significant strides, and git submodule can now be easily used to achieve a mono-repo-like level of painful jankiness.

[–] [email protected] 91 points 4 months ago* (last edited 4 months ago) (13 children)

Facebook uses Mercurial, but when people praise their developer tooling it's not just that. They're using their CLI which is built on top of Mercurial but cleans up its errors and commands further, it's all running on their own virtual filesystem (EdenFS), their dev testing in a customized version of chromium, and they sync code using their own in-house equivalent of GitHub, and all of it connects super nicely into their own customized version of VS Codium.

[–] [email protected] 26 points 4 months ago (3 children)
[–] [email protected] 42 points 4 months ago (1 children)

What you can do with 84000 employees

[–] [email protected] 19 points 4 months ago

And some good management. Probably not a common opinion around here, but my company is not a tenth of that size, with a hundredth the number of devs, yet different teams still end up copy pasting libraries. Because it's faster than convincing management DevOps is important.

[–] [email protected] 15 points 4 months ago (2 children)

And kinda horrifying. If something goes wrong, no Google, it's straight to IT

load more comments (2 replies)
[–] [email protected] 49 points 4 months ago

The source control was so smooth and pleasant that it convinced me that git isn't the be all end all, and the general developer focus was super nice, but some of that tooling was pretty janky, poorly documented, and you had no stack overflow to fall back on. And some of it (like EdenFS), really felt like it was the duct tape holding that overloaded monorepo together (complete with all the jankiness of a duct tape solution).

load more comments (12 replies)
load more comments
view more: ‹ prev next ›