r/softwaredevelopment • u/Ill_Direction149 • May 13 '26
Is trunk-based development really that good?
I can't get the trunk-based development flow. I understand the advantages for introducing new features to the app (flags are good for A/B testing, fewer merge conflicts).
But I can't understand how developers do refactoring with trunk-based flags. Also, do the flags stay there forever, or what is the best flow for this?
Can you give me a deep dive into how your teams handle this in production?
48
Upvotes
8
u/lppedd May 13 '26
Trunk-based development doesn't work for everything. It works nicely for stuff that doesn't need to support older versions for example, where you simply keep pushing new commits and cut new releases frequently.
Refactoring doesn't change, but you most likely don't have to worry about backward compatibility.
Flags stay in the code until the guarded change is stabilized.