by cjfd · 6y ago · 0 comments
If you want to add a complex feature to a project, you could do it via several branches, one after the other. For instance, the first branch could introduce a feature flag and the second branch implement part of the new feature, and so on.
If you're working in a large codebase and the function in question is part of your API, don't mutate it, add another function and deprecate the older function.
In any case, either developer A or developer B has to pay the cost of mutating the function at some point.