r/ProgrammerHumor • • 1d ago

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1y5zctl/removed_by_moderator/

[removed] — view removed post

5.2k Upvotes

353 comments sorted by

View all comments

Show parent comment

10

u/AnEvanAppeared 1d ago

A non-trivial merge conflict resolution is very time consuming. I feel like a lot of devs don't put the time necessary to pull up the full diff of both changes to make sure you've got it all correct.

I've watched some of my team resolve conflicts before and I do have to say, I would rather have AI resolve conflicts rather than the approach of looking at the code and making a good guess at which goes in.

5

u/trylist 1d ago

It's one of the more difficult parts of software dev for sure. You have to understand not just the syntax but the intentions of everything that was written. It takes a lot of experience to get there, and it's especially difficult because often you need to keep in mind context spread across files from two different units of work. Its hard enough to do that when its just your own work. Add in the fact that it's entirely possible to get something that works but subtly changes behavior, very stressful. Hope you have good tests.

Although most of the time it's pretty simple if you just make sure people aren't working in the same area of the code at the same time. So the conflicts are incidental and not structural.

1

u/trafalmadorianistic 1d ago

Ideally you'd also just be combining  unit tests for those pieces of code, but when they're covering the same area... what a headache. 

1

u/trafalmadorianistic 1d ago

I mean merging should be a matter of knowing what should go in, not guesswork. At least if changes are all in the same repo you'd have a better grasp of the whole picture.