Skip to content

Mob programming

Mob programing is an important tool that we like to take advantage of when we co-operate with users. Mob programming is a great way to learn and onboard quickly. It is a great way to grasp tools, workflows, and domain knowledge while contributing in a supportive environment.

To streamline the process, we use a tool called mob. It's designed to simplify mob and pair programming. If you have a session planned, we recommend installing it in advance for a smoother experience.

Here's how you can install it

Mac with brew

brew install remotemobprogramming/brew/mob

Other operating systems

curl -sL install.mob.sh | sh

You can also refer to mob's documentation.

Using the tool

Start by making sure your local main branch is clean

git stash --include-untracked  
git checkout main  

Then, the first person ("driver") can run

mob start -b <branch_postfix>  
mob next  

Creating a branch to work in

If you're on the main branch and run mob start -b db, it will create a new branch called mob/main-db.

The environment takes care of time tracking so that each person gets, for example, 10 minutes.

Important

Make sure you have a clean git status and are on the main or master branch before starting. This way, we avoid having to clean things up during the mob session.