Pair programming
Transcript of Pair programming
Pair ProgrammingRevisited
Index
Goals
Goals
Better code
Continuity
Focus
Pairing mechanics
Keep energy level high
Avoid cutting corners
Deliberate more
Concurrent thinking and typing
Set Up - Principles
Equal
Friendly
Comfortable
Patient
Energetic
Set Up - Practice
Equal acces to the keyboard
Equal position to the screen (dual)
Zero switching cost
No RSI position
Anti patterns
Grabbing the keyboard
Too much negativity
Deleting other person’s code
Checking the phone
Pairing styles
Driver/navigator
Organic
Styles - Driver/navigator
Driver types
Navigator thinks ahead
Styles - organic
Watch
Ask
Comment
Take over
Rotation
Full rotation
Fixed ‘expert’
Techniques
Write down to-dos
Techniques
One writes the test, the other implements
Techniques
Break out research
Techniques
Take breaks
Techniques
Switch pairs
Techniques
Have ‘off’ days
Techniques
Write down to-dos
One writes the test, the other implements
Break out research
Take breaks