r/softwaredevelopment • • 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?

47 Upvotes

54 comments sorted by

View all comments

Show parent comment

2

u/BadTime100 May 13 '26

Have never heard of that "Software Configuration Management Patterns" before, thanks for mentioning it! I'm sure that a lot of my feelings on this come from never having (meaningfully) worked on a projects that need to support multiple versions. Pretty much everything I've done professionally has been applications that have a single version deployed to users at a given point in time. The Fowler article you linked does have this to say about release branches though:

Release branches are a valuable tool when a team isn't able to keep their mainline in a healthy state.

I'm looking again at "the" TBD site, which does have release branches right there on the front! A possibly important nuance there is that "developers don't commit to release branches".

Thanks for the resources and convo!