Good Programming Practice – Code Review
Introduction |
---|
Section content first added by: Nicky Fahers 2010-11-19 How do you know if you and your colleagues are actually following Good Programming Practice? The main aim of code reviews are to make sure that all SAS programs are following Good Programming Practice. |
Benefits of Coding Reviewing |
---|
Help everyone to write more efficient programs
Help everyone to write programs that adhere to the Good Programming Practice
|
Implementation of a Code Review Process |
---|
All companies will tackle code review in different ways and some will not perform any at all. Here are a few examples of how code review has been performed in other companies: |
Scenario 1 |
---|
Everyone in the department who writes SAS programs will have their code reviewed by the Lead programmer of the study. The code reviewer will review the code and give informal feedback to the Lead programmers code will be reviewed by the code review team.
Ideally it would be code you have written from scratch If not: Code you have changed substantially. or A section of code that you have added or adapted. Highlighting clearly what you have added or changed. Common findings are presented in department meeting and training is given accordingly. |
Scenario 2 |
---|
Code reviews are only performed on people with less than 6 months experience. |
Common Findings |
---|
General | Efficiencies | Advice |
---|---|---|
|
|
Plan and structure your program before you start |