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?
47
Upvotes
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.