Just like you are testing so you might as well automate it before writing code, you also are pair programming so you might as well do it live. Writing is a conversation with another human and the quality of the writing depends on the context of the reader.
Testing
- Before code (TDD)
- After code
- On push
- Pre-merge
- In staging
- In prod
- By customers (fix when you see errors or complaints)
Pair Programming
- As you code
- Via code review
- Via issue/integration request (someone read your code, maybe it’s you!)