r/ProgrammerHumor • • Oct 13 '26

Meme aboutToBreakTheCode

Post image
23k Upvotes

544 comments sorted by

View all comments

725

u/botle Oct 13 '26 edited Oct 13 '26

Git is specifically designed for multiple people to work on different ideas in parallel.

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.

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).

→ More replies (2)

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!

→ More replies (1)

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)
→ More replies (8)
→ More replies (16)

73

u/creeper6530 Oct 13 '26

different ideas is the keyword. Editing the same area of the same file is how you get merge conflicts.

83

u/nokk Oct 13 '26

Yeah and they are handled pretty elegantly considering how awful it could be.

10

u/TheBestBigAl Oct 13 '26

I agree. Generally even editing a somewhat-similar part of the file is handled seamlessly.

Once in a blue moon I'd run into the situation where me and someone else have worked on the exact same block of code, and that went one of two ways:

  1. We essentially made the same change, which made resolving the conflict really easy (naturally I would keep my perfect change and drop my colleague's terrible one).
  2. We made totally different changes to fix/implement two different issues, which means that part of the code has a fundamental design problem and needs to be rewritten entirely.
→ More replies (14)

8

u/Meme_Burner Oct 13 '26

SVN: I attempted to merged, but you both changed this file, I don't know what to do, file clearly separated

ME: one is at the top of the file and one is at the bottom of the file

GIT: I have sequentially ordered everything and for some reasons these two lines dont merge

<<<<<<<

GIBBERISISH
>>>>>>>

<<<<<<<

MORE GIBBERISH
>>>>>>>

ME: What the f is that???? let me restart my change, starting with their version instead....

GIT handles merges so much better, we couldn't handle all the merge conflicts that SVN would give us. BUT WHEN merge conflicts happen in GIT, it's usually bad enough or no idea what it's trying to tell us that we have to start the entire change over.

→ More replies (1)
→ More replies (10)

16

u/jeffeb3 Oct 13 '26

Yeah. OP never had to use CVS.

7

u/dandroid126 Oct 13 '26

Please. I go there every month to pick up my prescription.

16

u/stormdelta Oct 13 '26

Yeah, meme doesn't make any sense. This is quite literally one of the things git improved on versus older version control systems.

→ More replies (3)
→ More replies (2)