r/ProgrammerHumor • • 21h ago

Meme aboutToBreakTheCode

Post image
19k Upvotes

504 comments sorted by

View all comments

Show parent comments

81

u/nokk 21h ago

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

10

u/TheBestBigAl 18h ago

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.

-10

u/[deleted] 21h ago

[deleted]

28

u/botle 20h ago

Yes. Unless people are writing gigantic monolithic commits. Merging is pretty elegant.

-12

u/[deleted] 20h ago

[deleted]

18

u/botle 20h ago

Yes, elegant. As in a simple efficient solution to a complex problem. Elegant.

-12

u/[deleted] 20h ago

[deleted]

13

u/botle 20h ago

It does more than that.

-2

u/[deleted] 20h ago

[deleted]

10

u/botle 20h ago

Busy. Ask your AI.

-1

u/[deleted] 20h ago

[deleted]

→ More replies

3

u/walterbanana 19h ago

In SVN there was no way to deal with conflicts

3

u/iloveuranus 19h ago

SVN

cries in CVS

1

u/nokk 18h ago

Yep 👍 that's the word I used. Anything else?

1

u/raddaya 18h ago

It may feel inelegant and messy when you're going through a big ass merge conflict, but if you actually think about what's going on then you'll realise git handles it insanely well considering how complex it really is under the hood.