r/ProgrammerHumor • • 10d ago

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

5.2k Upvotes

349 comments sorted by

View all comments

Show parent comment

70

u/DiamondDramatic9551 10d ago

It's much faster at solving merge conflicts than I ever could be. 

17

u/trafalmadorianistic 10d ago

Fuck, I still don't trust AI with merge conflicts. How's the experience been for you. What agents used? 

22

u/Rasutoerikusa 10d ago

I stopped handling thel manually after i noticed that agents literally make way less mistakes in merges than I do manually. With the latest models I've had 100% success rate in resolving conflicts with agents only. Now I no longer trust myself in doing the manual merges other than testing the end product

11

u/AnEvanAppeared 10d 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.

0

u/[deleted] 10d ago

[deleted] — view deleted comment

1

u/trafalmadorianistic 9d 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 9d 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. 

1

u/vulkur 10d ago

If the AI has all the facts accessible to it, its very rare it will fuck up. More context the better

0

u/Ziiiiik 10d ago

Frontier Google models. I just let it code and review and push for me at this point

0

u/danielv123 10d ago

I can't remember the last time a model screwed up a merge

0

u/dcheesi 10d ago

I only tried it once so far. I had Claude do it (in a few minutes), and then did a manual merge on another branch (which took most of a an afternoon). No mistakes on Claude's part, although it made different choices with a couple judgement call cases. Not worse, just different.

1

u/trafalmadorianistic 9d ago

Interesting! But did the judgment calls have functional/ structural impact, or mainly stylistic. 

2

u/dcheesi 9d ago

Style, I guess. Adding fields to a console output, which ones go before or after

0

u/scriptmonkey420 10d ago

Google antigravity has done very well at fixing merge conflicts on a repo for a project I was working on. No loss of code and it was working.

5

u/Mandemon90 10d ago

Only if I am unsure of the changes. But yeah, it's a lot faster to ask it to give quick analysis and recommended strategies (and reasoning for merge strategies), than go everything by hand.

I still don't let it just merge and push, buck stops at me so I need to verify and approve anything done.

5

u/IslayProgrammes 10d ago

I’m such a shill for jetbrains but diff ops are soo easy in jetbrains IDEs

2

u/jf8204 10d ago edited 10d ago

Definitely.

But running git commands is the one thing I don't allow it to do. Not because I think it would be lazy (I am lazy), but because otherwise I'd lose track of the state of my commits and won't know anymore what I reviewed and put my name to.

Allowing it to push commits on my name sounds like a serious security issue.

2

u/Wonderful-Habit-139 10d ago

Believe it or not... skill issue.

1

u/inarighas 10d ago

double plus true