Skip to main content

MSF for CMMI Process Improvement

Go Search
Home
  
MSF for CMMI Process Improvement > Wiki Pages > Activity - Write Code  

Activity - Write Code

Activity Information

Write Code

Description

To write code for a development task, identify the area where the change should occur, then write unit tests to validate the code, review and fix the written code, and finally integrate the code into the main source under version control. Additional steps may include debugging, refactoring, and shelving the code. After the code is written, reviews are necessary to ensure the quality of the code conforms to established practices and requirements. The code must not cause harmful side effects to other parts of the application.

Roles

ResponsibleDeveloper
ConsultedSolution Architect

Attributes

Element Categories[CMMI Track 3] Build, [CMMI Level 3] TS SP 3.1
Entry Criteria

A development task derived from a scenario or quality of service requirement is identified, scheduled, and costed:
A development task derived from a scenario or quality of service requirement is identified, scheduled, and costed.

If test driven development is used, a unit test for the development task is created:
If test driven development is used, a unit test for the development task is created.

Exit Criteria

The code for the development task is complete:
The code for the development task is complete.

Check Class Diagrams:
Any new methods are consistent with the classes that they populate.

Is RequiredYes

Steps

  1. Get Code Project:

    If a code project or solution (such as a Visual Studio solution) exists in which the new code will be created, check out the necessary files to write the new code.

    If a code project does not exist for the new code, create one.
  2. Create New Classes or Methods:

    Consult the design or application diagram. Determine if you must create any additional classes or methods to implement the development task.

    Create any additional classes or methods in the code project. Consider using the Class Designer and class diagrams to make the changes.

    Update the class diagrams to reflect all changes made to the classes.
  3. Implement Functionality:

    Write code to implement the functionality as designated by the development task and application diagram.

    If the new code requires changes to the application diagram, inform the architect.

Predecessors

TypeNameDependency Type
Design ReviewFinish-Start

Successors

TypeNameDependency Type
Perform Code AnalysisFinish-Start

Last modified at 12/19/2007 10:37 AM  by Administrator