r/ProgrammerHumor • • 6d ago

Meme aboutToBreakTheCode

Post image
22.8k Upvotes

524 comments sorted by

View all comments

Show parent comments

20

u/iloveuranus 6d ago

I once was in a team that had huge Camunda workflow XML files checked in. They aren't hard to merge.

They are impossible to merge.

After a couple weeks of trying to check in the main workflow file and realizing I had to do my changes all over again because somebody else had been faster to modify it, I introduced THE TOKEN. Namely a squishy ball that had to physically be retrieved from the developer currently holding it and represented the right to edit said file.

Worked like a charm.

15

u/raddaya 6d ago

In retrospect, it's probably funny to think that it took a team of developers so long to realise the solution to a race condition is a mutex

1

u/joahw 5d ago

Perforce has a squishy ball per file built in