Lesson 1.2 - Coding Process
Lesson 1.2 - Coding Process
Instructor:
Agenda
Coding Process
Code Review Process
Common Defects & Practices
Coding Process
Where the Coding is?
Coding Process
Coding Workflow
Start Plan
Code Library
Modules
Code Functional
Modules
Code Functional
Finish
Modules
Coding Process
Code Planning
Purpose: To plan and prepare for coding
Steps:
Study design documents
Define and prepare resources and infrastructure for coding,
unit test and integration, if necessary.
Create coding plan including targets, scope, required
deliverables and acceptance criteria,
task and schedule, responsibilities
Review and obtain agreement on coding plan
Develop/customize coding convention
Review & conduct training on coding convention
Verify tools support for coding (if any)
Coding Process
Coding Library Modules
A different perspective
Assess and accelerate progress
Pride/reward: more pride,
Project/module familiarity
Fewer bugs and less rework,
Better team communication
Team cohesiveness
Code Review Process
Review Candidates
Conduct review
Evaluate review
results
Rework and
Following-up
End
Code Review Process
Roles & Responsibilities
- Assisting conductor in
preparing for the review
- Joining the review
- Preparing meeting minute
Conductor Reviewer(s)
Author Approver(s)
- Assisting conductor in preparing
answer for comments/ questions
- Joining the review meeting
Project members
(Optional)
Code Review Process
Reviewing Inputs
Preparing notes:
Reviews are conducted as needed, usually based on the
rate of code output.
The frequency of individual participation in a peer review
depends primarily on the size of the programming team.
A team of 3 developers might include all three in every review.
Larger teams might be able to rotate participation based on
experience, skill level, subject matter familiarity, ...
The review should include the programmer, two reviewers,
a recorder, and a leader.
Other considerations for the size of the review team might
be the scope of the project, workload, or training needs.
Code Review Process
Conduct Review 1/2
Filled-up checklists
nalysis
.NET
FxCop http://msdn.microsoft.com/en-
us/library/bb429476%28v=vs.80%29.aspx
Resharper http://www.jetbrains.com/resharper/
StyleCop http://stylecop.codeplex.com/
JAVA
CheckStyle (http://checkstyle.sourceforge.net/)
C,C++
CPPCheck http://sourceforge.net/apps/mediawiki/cppcheck/
Code Review Process
Self- Code Review 3/3