Hacker News new | ask | show | jobs
by calvinmorrison 926 days ago
you can only have one person work on the code at a time? that seems, very very obviously dumb
2 comments

I can change A to B on my own, you can change A to C on your own.

At some point we have to communicate which change is correct.

It does not have to be synchronous and it might be via commit message - but still change alone is not enough for conflict resolution.

If you edit word document and someone then changes something there is no commit message but might be comment on document, email or im.

Unison has a neat approach to this problem: References are hashes of the abstract syntax tree, the only way to write a "collision" is to write an identical function--which isn't actually a collision at all.
Good point. I do the same in my own system and use Hashes of the source code, so there are no collisions. Slowly this technique will become mainstream I predict.
Multiple people can work on the code simultaneously and asynchronously, but conflict resolution must be done synchronously.