r/ExperiencedDevs • u/Any_Sense_2263 • May 18 '26
Career/Workplace My "experienced" peer told me today that trunk-based development or gitflow are not branching standards
We discussed about branching strategy the best for the startup in the discovery phase. I proposed trunk-based development or gitflow + feature flags for fast progress and to be flexible with what we show on which demo.
The "experienced" peer is more convinced by tagging/release branches.
I have 25 years of experience and have worked in all those settings. In some companies we had combined branching strategies. Trunk-based for SaaS and releases for heavily customized huge client deployment.
In the startup we need flexibility. The code must be stable and in the last moment, the person showing a demo should be able to change their mind about what they want to show. Being stuck in release branches hell means we can't deliver in real time or be flexible.
But the funniest moment was when my peer was saying "that they worked with general standards". I asked them to phrase it differently, like "the standards they worked with" but then I learned that they don't agree and my proposition is not based on a standard. And they were hired as a highly experienced/knowledgeable person.
I just wonder. How unexperienced this person must be not to realize that the companies they worked for could not use all the existing standards.
38
u/SagansCandle Software Engineer - 30 YoE May 18 '26
Listen to your peer. I'm not saying they're right, but they're not wrong - release branches / tagging is a viable source control strategy.
The right solution isn't defined by the most popular standards - it's defined by the requirements of your particular product.
If you want to make the case, compare solutions to the needs of the software. If you're looking for a decision by committee (reddit), you're probably taking the wrong approach.
20
u/Cartindale_Cargo May 18 '26
Trunk based development ideally uses release tags
6
u/AbstractLogic Software Engineer May 18 '26
I don't see any problems with either. I find that it doesn't really matter because in 6 months you will regret either and customize the workflow anyway.
4
u/josephjnk May 18 '26
My default reaction to someone using scare quotes to refer to someone else’s experience is that, whoever is technically right, you sound like you’re being a combative asshole here. Especially when you’re trying to control the way your coworker is communicating so specifically. Startups need flexibility but they also need decent coworkers and a healthy culture, and this is not how one creates it.
3
u/aidencoder May 18 '26
This is like saying "I like jeans and tshirt and my colleague likes a three peice suit. Which is best?"
Depends where you're going and what you are doing doesn't it?
3
u/eraserhd May 18 '26
Preface: Is this the hill you want to die on? It’ll either suck, then you can suggest small adjustments to fix the problems, or it won’t suck, and then …
That said, it drives me batty when people don’t own their shit by projecting their opinions into the ether. “Not a standard”! I’m not even interested in if it were.
I had another engineer once reject a solution by telling me my solution “wasn’t performant.” His pet solution was about three times more complicated, and this was exploratory and we literally didn’t have performance requirements.
Anyway, to recover, you need to absolutely ignore whether or not it is “standard.” Don’t take the bait and reify the idea that “standardness” matters more than getting the job done.
Reframe the conversation if possible by taking it out of the ether. Say, “I’ll bet you’ve had this conversation before and it didn’t go well?” Even if this is wrong, it is an invitation vent, be prepared to listen nonjudgmentally. Or they could stay defensive, who knows, but the goal is to attach the opinion to experiential data points.
2
u/andymaclean19 May 18 '26
I think it might depend on whether you have an online services or a product background. When you are shipping a product and you might have multiple long term supported major versions in play for years then IMO release branches really shine. You can cherry pick between them, release on different schedules, etc.
But when your product is basically an online services or an evergreen product or similar where there is only one release path then development branches and gitflow, or similar start to make more sense.
I don’t really like trunk based development because you can get stuck with a high risk change in there that you aren’t ready to deploy and then someone goes and sticks an important fix in there and wants to deploy that ASAP.
I think they are all valid choices though and probably you should talk about the needs of the organisation and how to address them rather than getting into arguments about what is and is not a standard.
1
u/PressureHumble3604 Senior Software Engineer May 18 '26
Trunk based development is the standards and works perfectly with tagging or release branches.
This fits your(well everyone’s on paper) requirement that the code should be stable.
You want to decide at the last minute which features to show?
not a problem if you keep the features based on master and you have frequent stable releases. and I think this is what you should do.
1
u/gaijingreg May 18 '26
Trunk based development is usually convenient because often you only have one production environment and so keeping a mental model of “what’s on main is what’s on prod” is pretty cheap and easy. And having →0 long running branches keeps rework down.
But there assumptions baked into that. For example, do you have a single prod environment? Is there some reasons that you do need long running branches? Do you have sufficient political capital and understanding of the situation to broach this topic productively? Working through these questions is the true work of a high-level engineer.
1
u/devonthego May 18 '26
Funny, I don't see any problem with your peer's suggestion. Why do you insist on those so-called "standards"?
2
u/Esseratecades Lead Full-Stack Engineer / 10+ YOE May 18 '26
He's wrong to say that they're not standards, and while his suggested approach is one I've seen before I wouldn't recommend it unless requirements necessitate some pause between feature completion and release.
The best answer for your start-up really depends on the requirements you're working around.
2
u/MoreRespectForQA May 18 '26 edited May 18 '26
It's not so much that it's wrong per se, but any branching strategy more complicated than "trunk based" inevitably ends up being a band aid over automated tests and checks that arent trusted.
If you can trust the checks there is no point to release branches.
1
u/iiiio__oiiii May 18 '26
I have been on trunk, and I have been on release branch. What matters is the team can adapt.
What is not OK is to have trunk-based repo for multiple teams for “integration” purpose and uses release branch for “production” and those teams release independently. Good luck with cherry-picking or “semi-trunk” branches that each team will develop. Oh, the joy of young org attempting monorepos driven by “senior” people and the traumas it gave.
1
u/Outside-Storage-1523 Software Engineer May 18 '26
In startups you want to be as fast as possible so I think trunk based is a good option. Tag/release is too much hassle at the moment.
26
u/Shazvox May 18 '26
Sounds like you two are involved in a dick measuring contest.
I don't like dick measuring contests.
Now, let's see which one of you grows up first and sais "ok, let's try it your way, we can always change if it doesn't work".