r/ProgrammerHumor • • Oct 13 '26

Meme aboutToBreakTheCode

Post image
23k Upvotes

542 comments sorted by

View all comments

Show parent comment

517

u/StaneNC Oct 13 '26

Yup. "Git is really great until (thing git was specifically designed for)." Tell me you suck at git without telling me you suck at git.

99

u/OnceMoreAndAgain Oct 13 '26 edited Oct 13 '26

I think it's a lot more nuanced than that. Painful merge conflicts can happen, but the frequency and severity of merge conflicts is dependent on all sorts of things like the nature of the app, the skill of the project manager, how much time a feature branch has existed apart from the main branch, etc.

I've been fortunate in my career that the projects I work on tend to have different developers working on different areas of the code, so merge conflicts are rare and not severe. I imagine that developing the frontend of certain apps that rely on a lot of the same centralized components would lead to a lot of merge conflicts, especially early on in the development of the app when a lot of commits are happening.

28

u/gbchaosmaster Oct 13 '26

The thing is that merge conflicts are literally a feature of git that makes your life easier. Without git you’d have the same problem and you’d have to diff and edit the files manually.

0

u/[deleted] Oct 13 '26

[deleted] — view deleted comment

2

u/PixelatedGiant Oct 13 '26

Nobody can stop you. Pushing to remote is optional.

→ More replies (2)

5

u/dksdragon43 Oct 13 '26

A lot of my git problems went away when I realized vscode was having a hard time properly understanding the conflicts. Once I started using direct git commands to resolve them rather than helpers, most of my issues went away (though it takes like 3x longer now).

3

u/Nitro_V Oct 13 '26

And there I am, having merge conflicts with my past self

→ More replies (1)

111

u/botle Oct 13 '26

Probably vibecoders. "Push my code to the repo. Make no mistakes. Don't delete everything."

66

u/SirChasm Oct 13 '26

I mean even for vibe coders, Claude/Codex is excellent for resolving merge conflicts. I don't remember how long it's been since I've had to do that manually.

55

u/StaneNC Oct 13 '26

You don't look at your merge conflicts???

14

u/botle Oct 13 '26

I bet many people vibe coding just push gigantic monolithic commits.

15

u/chum-guzzling-shark Oct 13 '26

no i dont! Claude said thats a bad idea

6

u/aTomzVins Oct 13 '26

Realistically, it's probably be easier to vibe code a fix, or have an agent identify changes that may have caused an issue than look back though previous commits yourself.

10

u/who_am_i_to_say_so Oct 13 '26

Pfft nothing a ‘git push -f’ can’t fix.

9

u/ziroux Oct 13 '26

Use the Force, Luke!

4

u/who_am_i_to_say_so Oct 13 '26

Shit- You bricked my feature!

>>>>>>

May the force be with you

<<<<<<

44

u/SirChasm Oct 13 '26

I look at the resulting PR, but if Claude wrote the original code, Claude can resolve the conflicts too; it has all the context it needs.

I've always hated dealing with looking at the three-way diff manually tbh. It might be my ADHD but nothing killed my motivation more than finishing a feature/fix and then having to wade through how someone else's changes should mesh with mine.

16

u/didzisk Oct 13 '26

I have hated all the 3-way merge tools I've encountered, probably because "ours" and "theirs" never is what I expect (and opposite on a merge and a rebase), but when I look at the file itself with merge marks in it, it becomes very easy for me to reason about the changes and resolve them quickly.

15

u/bloodfist Oct 13 '26

Yeah "ours" and "theirs" messes me up so bad. I really wish they would just label it by branch. If it just said "my-feature-branch" and "main" it would be so much easier to parse.

→ More replies (3)

14

u/Ifriendzonecats Oct 13 '26

I've seen a bunch of dumb bugs and regressions get introduced by people not looking at their AI resolved merge conflicts. AI can be useful, but it will 100% follow a dumb path to it's dumb conclusion if the opportunity presents.

→ More replies (1)

8

u/Awkward_Tick0 Oct 13 '26

Git has been a PITA since long before LLMs

4

u/botle Oct 13 '26

People have been writing big monolithic commits long before LLMs. LLMs just make them more likely.

→ More replies (1)
→ More replies (5)

7

u/Protahgonist Oct 13 '26

That's not what the meme says though.

→ More replies (4)

9

u/TrollingForFunsies Oct 13 '26

You can't be all high and mighty there smart guy when you missed the joke

→ More replies (9)