Code Inspection - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Code Inspection

Description:

Demonstrated evidence that inspections were cost effective. 23 ... comments and commenters. preparation time of reviewers. Reviewers contribute comments ... – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 17
Provided by: marka6
Category:

less

Transcript and Presenter's Notes

Title: Code Inspection


1
Code Inspection
  • SE 452, Software Verification and Validation
  • Mark Ardis, RIT

2
Outline
  • Fagan's original work on inspections
  • More recent work
  • changes to process
  • changes to techniques used
  • use of new technology

3
Fagan's Work
  • Proposed use of inspections
  • Demonstrated evidence that inspections were cost
    effective
  • 23 improvement in coding efficiency
  • careful to avoid the "Hawthorne effect"

4
Overview of Inspection Process
  • Preparation
  • meeting planned
  • reviewers study artifact
  • Inspection
  • Reporting
  • Rework

5
Preparation
  • Reviewers read code
  • Reviewers annotate code listing with comments
  • Reviewers keep track of time spent in preparation

6
Checklists
  • Mistakes
  • improper use of programming language
  • errors in algorithm or declarations
  • Poor style
  • violations of standard coding style
  • confusing or misleading expressions

7
(No Transcript)
8
Categorizing Defects
  • Some errors are more serious than others
  • Some errors are more common than others
  • Objective is not perfect classification, but
    separation of major types

9
Sample Categories
  • Major -- require investigation
  • Minor -- may not need immediate attention
  • Cosmetic -- optional improvements

10
Inspection Meeting
  • Moderator runs the meeting
  • Recorder keeps minutes
  • comments and commenters
  • preparation time of reviewers
  • Reviewers contribute comments
  • Authors attend, but remain silent

11
Moderating the Session
  • Don't go too fast -- may miss things
  • Don't go too slow
  • may not cover all of artifact
  • reviewers may lose concentration
  • Keep group on task
  • Record important events

12
Wrapping Up
  • Ask for final comments
  • Review action items
  • Recorder send minutes to moderator
  • Reviewers send annotated listings to authors
  • Moderator send reports to participants and to
    management

13
Rework
  • Authors review comments
  • Code is modified
  • Reviewers are notified of changes

14
Why Do Inspections Work?
  • Preparation
  • reviewers find things that authors miss
  • Peer pressure
  • forces developers to work harder
  • Formal process
  • forces developers and reviewers to do a thorough
    job

15
Costs of Inspection
  • Time spent in preparation
  • Time spent in meeting
  • Overhead of scheduling meeting

16
How Could We Improve Inspections?
  • Reduce number of reviewers
  • Reduce time spent in meeting
  • Hold meeting asynchronously
  • Hold meeting via the web
  • ... ?
Write a Comment
User Comments (0)
About PowerShow.com