Several things.
1} mid-life crisis is a deceptive clickbait title
2) teams are not inevitable. A lot of projects are solo work.
3) even when there are teams the divisions should be high enough so developers own components and files; sharing files leads directly to conflicts.
4) collaborative programming is a direct contradiction. Programming requires concentration. Concentration is inaccessible when communicating.