Pair programming

18
Pair Programming Revisited

Transcript of Pair programming

Page 1: Pair programming

Pair ProgrammingRevisited

Page 2: Pair programming

Index

Goals

Page 3: Pair programming

Goals

Better code

Continuity

Focus

Page 4: Pair programming

Pairing mechanics

Keep energy level high

Avoid cutting corners

Deliberate more

Concurrent thinking and typing

Page 5: Pair programming

Set Up - Principles

Equal

Friendly

Comfortable

Patient

Energetic

Page 6: Pair programming

Set Up - Practice

Equal acces to the keyboard

Equal position to the screen (dual)

Zero switching cost

No RSI position

Page 7: Pair programming

Anti patterns

Grabbing the keyboard

Too much negativity

Deleting other person’s code

Checking the phone

Page 8: Pair programming

Pairing styles

Driver/navigator

Organic

Page 9: Pair programming

Styles - Driver/navigator

Driver types

Navigator thinks ahead

Page 10: Pair programming

Styles - organic

Watch

Ask

Comment

Take over

Page 11: Pair programming

Rotation

Full rotation

Fixed ‘expert’

Page 12: Pair programming

Techniques

Write down to-dos

Page 13: Pair programming

Techniques

One writes the test, the other implements

Page 14: Pair programming

Techniques

Break out research

Page 15: Pair programming

Techniques

Take breaks

Page 16: Pair programming

Techniques

Switch pairs

Page 17: Pair programming

Techniques

Have ‘off’ days

Page 18: Pair programming

Techniques

Write down to-dos

One writes the test, the other implements

Break out research

Take breaks