DEV Community

Discussion on: why branching on git is wrong

Collapse
 
moopet profile image
Ben Sinclair • Edited

Aren't you describing technical debt?

I feel that adding features as soft dependencies like that is generally a bad idea, because your code now contains the new code, the old code and extra code to figure out which one to use. Every time you integrate a new, new feature, you'll need to make sure it works with the legacy code too.

I can't see how that is going to work in a big project. You'll have to spend extra time and resources unpicking the legacy stuff at some point anyway, right?

If it works for you and your team, sure, go for it, but I think most people would be better off using separate feature branches.