Have you tried 3 way merge editors? Or, like any kind of editor with visual representation of the merge conflict?
IMO it's pretty clear, as long as you can retain the context for:
- What the old method did, and how;
- What the new method does, and how;
- What are the side effects of the old one;
- What are the side effects of the new one;
- Do you need both methods, and if so - how, or if only one is necessary - which side effects and inner workings should be retained, and how.
And like, regardless of your merge conflict visualization, your VCS, or whatever - if you want to merge two ideas into one - you have to do this in your mind, no VCS can help you understand the logic that is present and that is required for your app/service/whatever.
Then again, a good VCS and editor can help you out here - like having a 3 way editor is great for complex merge conflicts, because you can properly see the "old", the "new" and the "resolved" at the same time, AND in full for all 3 views, so you don't have to keep going between the in/current contexts line by line (or, more realistically - a group of lines at a time)
View all comments
Show parent comment
4
u/InvisibleMoonWalker Oct 13 '26
Have you tried 3 way merge editors? Or, like any kind of editor with visual representation of the merge conflict?
IMO it's pretty clear, as long as you can retain the context for:
- What the old method did, and how;
- What the new method does, and how;
- What are the side effects of the old one;
- What are the side effects of the new one;
- Do you need both methods, and if so - how, or if only one is necessary - which side effects and inner workings should be retained, and how.
And like, regardless of your merge conflict visualization, your VCS, or whatever - if you want to merge two ideas into one - you have to do this in your mind, no VCS can help you understand the logic that is present and that is required for your app/service/whatever.
Then again, a good VCS and editor can help you out here - like having a 3 way editor is great for complex merge conflicts, because you can properly see the "old", the "new" and the "resolved" at the same time, AND in full for all 3 views, so you don't have to keep going between the in/current contexts line by line (or, more realistically - a group of lines at a time)