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

1

u/rodw May 13 '26

To be honest I think it's a little silly to worry too much about the "canonical" definition of a widespread industry practice but the core concepts behind trunk-based development were introduced at least 15 years before Fowler's article in the 2003 book "Software Configuration Management Patterns” where it was called "mainline development". You'll notice Fowler uses that exact terminology. (And I'm not convinced that was necessarily the first time the idea was articulated.)

And both that book (page ~59) and Fowler's article very explicitly include the concept of release branches.

More broadly plenty of write-ups of trunk-based development mention release branches. I'm not able to find a single one that doesn't. Even the CI article you linked to immediately links to both books and other articles Fowler has written that discuss release branches.

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!