Distributed Pair Programming with DocShare
Laurie Williams and Lauren Hayward [Contact Authors] |
| 1.0 | Introduction to DocShare |
| 2.0 | Getting Started with this Tutorial |
| 3.0 | Connecting to a Chat Client |
| 4.0 | Pair Programming |
| 5.0 | Other Interesting Features |
| 6.0 | Exercise |
| 7.0 | Resources |
DocShare is an Eclipse plugin that allows two developers to pair program from distributed locations. The users can view the same code and collaborate as they work together to write code. DocShare currently allows for collaboration in the Java Editor and the Text Editor, but it can be modified for other editors (see here). Laurie Williams from North Carolina State University describes pair programming as, "Two programmers working side-by-side, collaborating on the same design, algorithm, code or test. One programmer, the driver, has control of the keyboard/mouse and actively implements the program. The other programmer, the observer, continuously observes the work of the driver to identify tactical (syntactic, spelling, etc.) defects and also thinks strategically about the direction of the work. On demand, the two programmers can brainstorm any challenging problem. Because the two programmers periodically switch roles, they work together as equals to develop software." DocShare is based on the Eclipse Collaboration Framework (ECF). DocShare for Eclipse 3.3 can be downloaded from the update site (http://download.eclipse.org/rt/ecf/2.0/updateSite) or from a zip file (org.eclipse.ecf.sdk-2.0.1.v20081006-2232.zip). DocShare for Eclipse 3.4 can be downloaded form the update site (http://download.eclipse.org/rt/ecf/2.0/3.4/updateSite/site.xml) or from a zip file (org.eclipse.ecf.sdk-2.0.1.v20080916-1301.zip). For more information on installing eclipse plugins, consult the tutorial on the subject.
Notes on installation: Rational Team Concert is built on Eclipse 3.3. Mac and Linux users may need to use the zip file installation.
An extension for DocShare that allows for sharing in the JSP Editor is available here. To install it, simply extract the zip file to your eclipse folder. If you are using Jazz, extract to jazz/client/eclipse. For students using lab machines in 3228, you should extract the file to C:/jazz/jazz/client/eclipse. You will need to restart your workspace after extracting the file. |
For this tutorial, we will need two users: Lauren and Jason. You can work with another person on this tutorial and designate who will be Lauren and who will be Jason, or you can simply open two instances of Eclipse or Rational Team Concert on the same machine and use separate chat client accounts for each user. For users completing this tutorial from distributed locations: It is possible to instant message once you have connected through DocShare, but you may find it helpful to begin the tutorial using some sort of external form of communication like instant messaging, video chat through TokBox, or a telephone call. All users may find it beneficial to try distributed pair programming with communication through a free TokBox voice or video call. TokBox is a web application that allows users to login to their AOL, MSN, Yahoo, and/or Google instant messaging accounts and make voice or video calls. |
|
In this section, you will setup a connection a chat client for distributed pair programming. The DocShare plugin should be installed before beginning this section (see Section 1.0 for more information on installing the plugin).
|
Once you have established a connection as described in Section 2.0, you are ready to start pair programming.
|
DocShare has many other features you may want to explore.
|
| With your partner, use DocShare to pair program and create a new class that prints Hello World. Show your TA your new class and demonstrate pair programming with one partner driving and the other observing. |