Two programmers work together:
Each 15 minutes the roles change.
This should produce better software with fewer bugs.
Take a short break every hour.
The pair must maintain a GitHub repository. One of the programmers creates a GitHub repository and invites the other programmer to collaborate.
The code must be pushed to GitHub at least every time the roles change (every 15 minutes).
This is to ensure that the code is available to both programmers at all times - even when one of the programmers is not present.
The software must be thoroughly tested:
Tests can be written before writing the program (test first) or after - try both.
It is most important that the test is written very close to writing the program. Don’t wait a long time before writing tests.
This is an alternative to Live Share.
You still need to share audio and screen using Microsoft Teams or a similar tool.
The first driver:
The second driver:
The driver:
Warning: In pair programming the navigateur must not do any programming.
If the navigateur accidentally starts to program you might face merge conflicts.
Pair programming can be done remotely by applying different tools.
We normally program using Visual Studio and Visual Studio Code.
They both have means to share the editor:
With Live Share both programmers can write code at the same time. This is NOT the way to do pair programming. The driver writes code. The navigateur leads the way.
Talking to each other while pair programming can be done using Discord, Microsoft Teams or other tools.
I’ve heard that it is possible not only to show your screen to your programming partner, but also let the partner write on the screen. Share a single application, not the desktop.
However, I haven’t tried this feature yet...