DEV Community

Jonathan Hall
Jonathan Hall

Posted on • Originally published at jhall.io on

Commit daily

One of the most common problems I see teams and individuals facing when trying to adopt trunk-based development, is the struggle to break the habit of long-lived feature branches.

Some things I commonly hear are:

“Yes, smaller PRs would be nice, but this feature is just too big for that.”

“I just don’t feel good about submitting an incomplete PR.”

“It’s not working yet.”

There are many strategies to make smaller PRs (or even eliminate the need for PRs entirely), but that’s not what I want to talk about right now.

Instead, I want to encourage anyone who’s struggling with this to make a personal commitment. Or if your team is struggling, form a team working agreement.

The commitment is simple:

Commit daily.

To elaborate, my suggestion is to at minimum, commit your work daily, push it to the server, and open a pull request. Keep it in WIP/Draft mode if you must.

But making your work visible is half of the reason for continuous integration (CI) and trunk-based development (TBD).

This step alone isn’t enough to give you the benefits of TBD and CI. But if you’re struggling with the idea of sharing incomplete work, I know no better way to overcome that “shyness”, than to simply force yourself to share incomplete work.

Don’t let another day go by when you don’t commit something to a PR, even when it’s incomplete.


If you enjoyed this message, subscribe to The Daily Commit to get future messages to your inbox.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

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