DEV Community

Cover image for The feeling of Trunk-Based Development
Dan Lebrero
Dan Lebrero

Posted on • Originally published at danlebrero.com on

4

The feeling of Trunk-Based Development

Trunk-Based development.

Yet another practice that is rarely practiced in our industry, even if it is identified in the Accelerate book as one of the technical capabilities that is correlated with higher delivery performance.

Plenty of blogs and conference talks explain the marvellous benefits of using it.

You probably also needed to practice it to pass Jez Humble's Continuous Integration test:

  1. Each commit should trigger a build and run some test suite.
  2. The build is never broken for more than 10 minutes.
  3. Commit to mainline every day.

Yes. You need to commit to trunk/master/main every day if you want to claim that your company is doing Continuous Integration.

If with all the existing material, your teammates haven't been convinced to use Trunk-Based development, adding more reasons to the debate is foolish.

Replicating the very successful method to convince your company to use Clojure could be a possibility, but a year as CTO teaches you that appealing to people's emotions is more effective that any reasoning.

So how does Trunk-Based development feel like?

Basically:

the-feeling-of-trunk-based-development

a race to be the first one to commit & push, so it is your teammate -- and not you -- the one that has to deal with any conflicts.

Happy Trunk-Based developing!


Actually Trunk-Based development is great! For a more serious "Why Trunk-Based development" content I would recommend Mattia Battiston blog Why I love Trunk Based Development or Steve Smith talk The Death of Continuous Integration. Enjoy!

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay