Title: Daniel Brown
1Daniel Brown
- Code Reviews
- What do they mean to Project Managers
E-Mail daniel.brown_at_internode.on.net Blog
http//www.danielbrown.id.au/
2(No Transcript)
3 4What are we going to cover?
- What is a code review
- How to perform one
- When to perform them
- What are the benefits
- Tips
5 6Code Reviews are not
- A Blame Game!
- A way to measure a developers abilities!
- A long meeting!!!!!!!!
7What is a Code Review?
- A Constructive way to find
- Common Defects
- Memory Leaks
- Complex Code
- Broken functionality
- Vulnerabilities
- Buffer Overflows
- Size Checking
- Exploits
- Security Defects
- Missing / Wrong Security permissions
- Elevation or privileges
- Inaccurate in-code documentation
- A way to build and exchange knowledge
- Language independent
8Why review in-code documentation?
- Ensure the comments are valid accurate against
the code - It should explain what it SHOULD do, not what it
does - Easy to read and understand
9 10What metrics can you gather?
- Major defects
- Minor defects
- Documentation defects
- How much time is allocated to bug fixes
- (this is a good thing! it gives you better
datetime projections!)
11How to these metrics help?
- Show Progress to everyone
- Track how many defects have been stoped from
going into production - Save Time and Money
12Knowledge Exchange
- Teaches the new as well as the old by
- Giving new perspectives
- Documentation Writing
13Benefits of conducting Code Reviews
- Catch defects early before the users see them!
- Information and Knowledge exchange between
developers - More reliable software (Known-state)
14Pre-requisites
- Standard
- Example ECMA
- Source Control
- SVN, TFS, SourceSafe, CVS
15How to perform a code review
- Before anything, Code reviews are social
- You want the developer juices flowing!
- Before the review
- What to review
- Reviewing
- Roles
- Reading
- Recording defects
- Keep it simple Major/Minor/Investigate
- Follow Up
16How to record defects
- Spreadsheet
- Columns
- , Title, Details, Major/Minor, Assigned To,
Recorded, Completed
17When to perform code reviews?
- Every X number of Check Ins to Source Control
- Only review what has changed
- - OR
- As often as you need
18Summary
- Code Reviews Productivity
- Designed to be pro-active
- Not a blame game!
- Part of the development lifecycle
- Easy to manage
- Do them Friday
- But keep them focused! (they will deviate)
Get more information http//msdn.microsoft.com/en
-us/library/aa302437.aspx http//en.wikipedia.org/
wiki/Code_review
19Questions?
20E-Mail daniel.brown_at_internode.on.net Blog
http//www.danielbrownid.au/ Mobile 0419-804-099