Task Descriptor: Write Code
Based on Method Task: Write Code
Relationships
RolesPrimary: Additional: Assisting:
InputsMandatory:
  • None
Optional: External:
  • None
Outputs
Steps
Get a Pair Programming Partner

Pair Programming is an Extreme Programming best practice. The basic rule regarding pair programming in XP is that all production code is developed in pairs. One programmer has the responsibility to complete a task. That programmer asks other programmers to pair with him to complete the task. The pairings are short term, usually less than half a day. Find a partner who has experience or skill you need to complete your task. Your task may include modifying a database table. Ask the person on the team most knowledgeable to help you effectively use the database API. Later, you might need to display the data in a GUI window, but you have not seen that part of the GUI. Get someone who knows about it to help.

Write Code to Make Tests Pass

When you have a failing test case, you then write only the code that is necessary to satisfy the test case. Test cases should have a very narrow focus. A failing test case may trigger the creation of a new class or method named in the test case, or it may simply require you to add more code to existing classes and methods.

Properties
Multiple Occurrences
Event Driven
Ongoing
Optional
Planned
RepeatableYes