Task: Write Code
Purpose
  • To specify the design of the system in a way which is precise enough to allow computers to generate efficient processes automatically and clear enough for people to understand during ongoing work and maintenance.
Relationships
RolesPrimary Performer: Additional Performers:
InputsMandatory:
  • None
Optional:
    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.

      More Information