Code Reviews Assignment Each team should perform a code review

Slides:



Advertisements
Similar presentations
Collaborative Code Construction: Code Reviews and Pair Programming CPSC 315 – Programming Studio Spring 2009.
Advertisements

Damian Gordon.  Static Testing is the testing of a component or system at a specification or implementation level without execution of the software.
Software Project Management Lecture # 11. Outline Quality Management ( chapter 26 - Pressman )  Software reviews  Formal Inspections & Technical Reviews.
Formal Technical Reviews
Static Technique. Static Technique - Review  A way of testing software work products  Program code, requirement spec., design spec.  Test plan, test.
Testing Without Executing the Code Pavlina Koleva Junior QA Engineer WinCore Telerik QA Academy Telerik QA Academy.
AUDITS Process and Corrective Actions OIG RolesGAO ROLES – OIG –OIG Lead Auditor –OCFO – owner of MATS and Agency Audit Process –OEI AA – Designated OEI.
Code Inspections CSSE 376, Software Quality Assurance Rose-Hulman Institute of Technology March 22, 2007.
Week 7: Requirements validation Structured walkthroughs Why have walkthroughs When to have walkthroughs Who participates What procedures are helpful Thoughtless.
OHT 8.1 Galin, SQA from theory to implementation © Pearson Education Limited Review objectives Formal design reviews (FDRs) Participants Preparations.
Applied Software Project Management Andrew Stellman & Jennifer Greene Applied Software Project Management Applied Software.
OHT 8.1 Galin, SQA from theory to implementation © Pearson Education Limited 2004 Review objectives Formal design reviews (FDRs) Participants Preparations.
Applied Software Project Management Andrew Stellman & Jennifer Greene Applied Software Project Management Applied Software.
Design Reviews Peer Reviews. Agenda Peer Reviews Participants of Peer Review Preparation for a Peer Review Session The Peer Review Session Post-peer Review.
How The State Auditor Expects Districts to Comply With the Sunshine Law Susan Goldammer Missouri School Boards’ Association.
Software Engineering Process I
Software Inspections and Walkthroughs By. Adnan khan.
Slide 6.1 CHAPTER 6 TESTING. Slide 6.2 Overview l Quality issues l Nonexecution-based testing l Execution-based testing l What should be tested? l Testing.
Galin, SQA from theory to implementation © Pearson Education Limited 2004 Review objectives Formal design reviews (FDRs) Participants Preparations The.
Software Reviews. Introduction/Motivation When creating written documents, it is a good idea to have someone else proof read your work. Oftentimes an.
S oftware Q uality A ssurance Part One Reviews and Inspections.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 10: Testing and Inspecting to Ensure High Quality Part 4:
Lecture 16 Formal Technical Reviews (FTRs) (also know as inspections) FOR0383 Software Quality Assurance 9/19/20151Dr Andy Brooks Don´t review in your.
Software Inspection A basic tool for defect removal A basic tool for defect removal Urgent need for QA and removal can be supported by inspection Urgent.
Formal and Informal Peer Reviews
© Mahindra Satyam 2009 Defect Management and Prevention QMS Training.
Benefiting from Code Inspections Kevin W. Wall Copyright © – Kevin W. Wall – Some Rights Reserved. This work is made available and licensed.
Formal Technical Reviews Matt Graham 18 November 2004 EECS 814 University of Kansas.
INFORMATION X INFO415: Systems Analysis Systems Analysis Project Deliverable 1 Project Statement of Work Outline.
Software Testing and Maintenance 1 Code Review  Introduction  How to Conduct Code Review  Practical Tips  Tool Support  Summary.
Applied Software Project Management Andrew Stellman & Jennifer Greene Applied Software Project Management Applied Software.
Code Reviews James Walden Northern Kentucky University.
Inspection and Review The main objective of an Inspection or a Review is to Detect Defects. (Today -there may be some other goals or broader definition.
Inspection and Review The main objective of an Inspection or a Review is to detect defects. This activity and procedure was first formalized by Mike Fagan.
Testing and Debugging. Testing Fundamentals  Test as you develop Easier to find bugs early rather than later Prototyping helps identify problems early.
Mahindra Satyam Confidential Quality Management System Software Defect Prevention.
Reviews Chapter 5 Applied Software Project Management, Stellman & Greene See also:
Management of Software Project CSM Review By:Nafas.
Chapter 4-Static Testing Techniques Types of Reviews Review Process Static analysis using tools.
Software Project Management Lecture # 12. Outline Quality Management ( chapter 26 - Pressman )  SQA  Who does it?  SQA Activities  Software reviews.
SQA COMPONENTS IN THE PROJECT LIFE CYCLE C HAPTER 8 Dr. Ahmad F. Shubita.
1 TenStep Project Management Process ™ PM00.4 PM00.4 Project Management Preparation for Success * Manage Issues *
© Mahindra Satyam 2009 Inspections and Reviews QMS Training.
21. Collaborative Construction
IEP Primer: Specially Designed Instruction
Software Quality Control and Quality Assurance: Introduction
Software Configuration Management (SCM)
eXtremely Distributed Software Development
Code Reviews.
Academic representative Committee CHAIR training
SWE 3643_2016_Lesson_3 PSP Data / Review / Inspection from kindergarten to college SWE 3643 Lesson 3 PSP & Review/Inspection.
Peer Reviews 11/21/2018.
Collaborative Code Construction: Code Reviews and Pair Programming
Inspection and Review The main objective of an Inspection or a Review is to detect defects. (Not for Giving Alternative Solutions) This activity and procedure.
COLLABORATIVE CODE CONSTRUCTION: CODE REVIEWS AND PAIR PROGRAMMING
Quality Measurable characteristic Cyclomatic complexity Cohesion
Applied Software Project Management
2018 SMU Staff Performance Review Training
Collaborative Code Construction: Code Reviews and Pair Programming
Dr. Rob Hasker SE 3800 Note 9 Reviews.
Meetings have always taken a large part of the average manager’s week
QA Reviews Lecture # 6.
COMPLIANCE WITH SUNSHINE LAW
WALKTHROUGH and INSPECTION
Collaborative Code Construction: Code Reviews and Pair Programming
Software Reviews.
Collaborative Code Construction: Code Reviews and Pair Programming
Periodic Accounting Review Periodic Revenue Reconciliation
Collaborative Code Construction: Code Reviews and Pair Programming
Presentation transcript:

Code Reviews Assignment Each team should perform a code review Select a section of code Select your more difficult code sections. Other members of the team and the instructor will be given copies of the code to review at least 48 hours ahead of time. The code review should last about 1 hour. Don’t select too much code – about 300 lines is good

Code Reviews Objectives Find bugs in the least costly manner Ensure that coding standards are maintained Train staff and disseminate knowledge of system implementation Make sure code is readable and maintainable

Formal Inspection All participants are given copies of the code to be reviewed before the review (usually a couple of days ahead of time) The reviewers review the code before the meeting The code author and other team members gather to review the code The principal goal is to find bugs (defects), not fix them

Formal Inspections Roles Moderator Sets the pace Arranges meeting and manages materials Reports Results Follows up Author Answers questions Explains things that are unclear (and will obviously have to be changed.)

Formal Inspection Roles ContInued Reviewer Fellow programmer Tester High-level architect Scribe Records problems (the official record of the review) Records action items Management must be excluded from the meeting

How much Code should Be Reviewed in one Meeting? Enough to consume about an hour’s time Number of lines of code varies significantly with code complexity

Inspection Meeting Someone other than the moderator or author reads or paraphrases the code Reviewers make relevant comments as the code is read Remember you are looking for bugs Address the code – not the programmer (“The code does” … rather than “You did…”) “Egoless” is the goal, but seldom the reality Reviewers don’t recommend fixes

Inspection Report Issued within 24 hours of the meeting Report is a record of what was found “What was found” provides statistics for management on efficacy What was found provides opportunity for follow-up

Reworks and Follow-up Rework Follow-up The author fixes the defects The moderator is responsible for seeing that the defects have been addressed, but it is up to the author to make decisions about what needs to be changed. Review the code again Review relevant sections only No formal review

Third-Hour Meeting Optional informal meeting in which reviewers discuss solutions. This meeting should only be held if the author requests it, or if there are significant urgent problems.

Alternatives Over-the-shoulder Reviews Email (pass-around) reviews Author walks through code with one peer Less formal Less documentation/assurance of completion No formal followup Email (pass-around) reviews Not constrained to place/time Can be difficult to track the conversation Pair-Programming Pairs can be too close to the code to see problems May be more time-consuming/expensive Can be combined with formal reviews