2. Pair programming
• Pair programming is an agile software development
technique in which two programmers work together at
one work station. One types in code while the other
reviews each line of code as it is typed in. The person
typing is called the driver. The person reviewing the code
is called the observer (or navigator[1]). The two
programmers switch roles frequently.
3. One way to do this
• Driver : john, Navigator: taylor
• 30 mins
• Driver : Taylor, Navigator: john
• 30 mins
• ....
4. setup (cool vs cheap)
• Big monitor (30”, 27” imac)
• teleport (remote control app for mac)
• 2 laptops and work on the same
workstation
6. Problem
• ideally upon switch, driver will take over
the big screen or shared workstation
• source code management issue
• may be
• git commit && git push
• share file system
7. git it
• git
• gitjour
Automates DNSSD-powered serving and cloning of git repositories
• local network push/pull
Upon role switch
driver - commit the code in git
navigator - pull the code from driver
8. Say hello to pairjour
• git + gitjour + git command line hacks
• github.com/idealian/pairjour
9. How it works
• pairjour start [project name]
• start git daemon
• switch to pairing local branch
• pairjour switch
• discover potential local git repo
• local git commit
• pull from pair partner
• pairjour finish
10. How it works - cont..
• start - both user enters
• cd myapp
• pairjour start myapp
• john (driver), taylor (navigate)
• john codes for 30mins
• switch
• pairjour switch
11. Limitations
• Not Ruby 1.9 compat (DNSSD gem)
• Discovery mostly instant (but chocks some
times )
• pre-alpha code