ebook img

Software Reading Techniques: Twenty Techniques for More Effective Software Review and Inspection PDF

140 Pages·2016·5.087 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Software Reading Techniques: Twenty Techniques for More Effective Software Review and Inspection

Sof tware Reading Techniques Twenty Techniques for More Effective Software Review and Inspection — Yang-Ming Zhu Software Reading Techniques Twenty Techniques for More Effective Software Review and Inspection Yang-Ming Zhu Software Reading Techniques: Twenty Techniques for More Effective Software Review and Inspection Yang-Ming Zhu Solon, Ohio USA ISBN-13 (pbk): 978-1-4842-2345-1 ISBN-13 (electronic): 978-1-4842-2346-8 DOI 10.1007/978-1-4842-2346-8 Library of Congress Control Number: 2016959789 Copyright © 2016 by Yang-Ming Zhu This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director: Welmoed Spahr Acquisitions Editor: Robert Hutchinson Developmental Editor: Laura Berendson Technical Reviewer: Weidong Liao Editorial Board: Steve Anglin, Pramila Balen, Laura Berendson, Aaron Black, Louise Corrigan, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal, James Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan Spearing Coordinating Editor: Rita Fernando Copy Editor: Angela Warner Compositor: SPi Global Indexer: SPi Global Cover Image: Designed by Pio_pio - Freepik.com Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail o [email protected] , or visit w ww.springeronline.com . Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail [email protected] , or visit w ww.apress.com . Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at w ww.apress.com/bulk-sales . Any source code or other supplementary materials referenced by the author in this text is available to readers at w ww.apress.com . For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/ . Printed on acid-free paper To Xiao-Hong, Harold, Alex, and the rest of my family. Contents at a Glance About the Author ............................................................................xiii About the Technical Reviewer .........................................................xv Acknowledgments .........................................................................xvii Introduction ....................................................................................xix ■ Chapter 1: Introduction ..................................................................1 ■ Chapter 2: Software Review Procedures ........................................7 ■ Chapter 3: Basic Software Reading Techniques ...........................21 ■ Chapter 4: Scenario-Based Reading Techniques ..........................35 ■ Chapter 5: Requirements Reading Techniques .............................69 ■ Chapter 6: Design Reading Techniques ........................................77 ■ Chapter 7: Code Reading Techniques .........................................103 ■ Chapter 8: Conclusion ................................................................119 Index ..............................................................................................123 v Contents About the Author ............................................................................xiii About the Technical Reviewer .........................................................xv Acknowledgments .........................................................................xvii Introduction ....................................................................................xix ■ Chapter 1: Introduction ..................................................................1 1.1 Software Quality, Software Reviews and Inspections ....................1 1.2 A bout This Book .............................................................................4 1.2.1 Organization of This Book .............................................................................4 1.2.2 Intended Audience and How to Use This Book .............................................5 1.3 References .....................................................................................5 ■ Chapter 2: Software Review Procedures ........................................7 2.1 A Generic Software Review Procedure...........................................7 2.2 Fagan Inspection and Extensions ...................................................8 2.2.1 Fagan Inspection ..........................................................................................8 2.2.2 Extensions to Fagan Inspection ..................................................................11 2.3 Active Design Review and Extensions ..........................................13 2.3.1 Active Design Review .................................................................................13 2.3.2 Extensions to the Active Design Review .....................................................15 2.4 Other Types of Reviews ................................................................15 2.5 Factors Impacting Software Reviews...........................................16 vii ■ CONTENTS 2.6 Summary ......................................................................................18 2.7 References ...................................................................................19 ■ Chapter 3: Basic Software Reading Techniques ...........................21 3.1 Introduction to Software Reading ................................................21 3.1.1 Defi nition of Software Reading ...................................................................22 3.1.2 Purposes of Software Reading ...................................................................22 3.1.3 Taxonomy of Software Reading Techniques ...............................................23 3.2 Ad hoc Reading ............................................................................23 3.3 Checklist-Based Reading .............................................................24 3.3.1 Checklist Defi nition, Types, and Examples .................................................24 3.3.2 Checklists with Guidance ...........................................................................26 3.3.3 Best Practices of Checklists .......................................................................28 3.3.4 Empirical Experiences ................................................................................28 3.4 Differential Reading .....................................................................29 3.5 Summary ......................................................................................32 3.6 References ...................................................................................33 ■ Chapter 4: Scenario-Based Reading Techniques ..........................35 4.1 Principles of Scenario-Based Reading .........................................35 4.2 Defect-Based Reading .................................................................37 4.2.1 Taxonomy of Defects in Requirements Specifi cations ................................38 4.2.2 Defect-Based Reading Techniques .............................................................39 4.2.3 Empirical Experiences ................................................................................41 4.3 Perspective-Based Reading .........................................................42 4.3.1 A Generic Perspective-Based Reading .......................................................42 4.3.2 Perspective-Based Requirements Reading ................................................45 4.3.3 Perspective-Based Design Reading ...........................................................48 4.3.4 Perspective-Based Code Reading ..............................................................52 viii ■ CONTENTS 4.3.5 Perspective-Based Usability Reading .........................................................54 4.3.6 Why Does Perspective-Based Reading Work? ............................................58 4.4 Alternative Partitioning of Reading Responsibilities ....................64 4.4.1 Ad hoc Partition ..........................................................................................64 4.4.2 Function Point-Based Partition ...................................................................65 4.5 Summary ......................................................................................66 4.6 References ...................................................................................66 ■ Chapter 5: Requirements Reading Techniques .............................69 5.1 Critical Roles of Requirements in Software Development ...........69 5.2 A Combined Reading Technique for Requirements ......................70 5.2.1 Motivations for a Combined Reading..........................................................70 5.2.2 T he Combined-Reading Technique .............................................................70 5.2.3 Empirical Experiences ................................................................................72 5.3 Test-Case Driven Reading for Requirements................................72 5.3.1 T est-Case-Driven Reading Technique .........................................................72 5.3.2 Empirical Experiences ................................................................................74 5.4 Individual Factors Impacting Requirements Reading Effi ciency ......................................................................................74 5.5 Summary ......................................................................................75 5.6 References ...................................................................................76 ■ Chapter 6: Design Reading Techniques ........................................77 6.1 Introduction ..................................................................................77 6.2 Usage-Based Reading ..................................................................77 6.2.1 Usage-Based Reading Technique ...............................................................78 6.2.2 Variations of Usage-Based Reading ...........................................................80 6.2.3 Empirical Experiences ................................................................................80 6.3 T raceability-Based Reading ..........................................................81 6.3.1 Types of Design Defects .............................................................................82 6.3.2 High-Level OO Designs Using UML Diagrams .............................................82 ix ■ CONTENTS 6.3.3 T raceability-Based Reading Techniques .....................................................83 6.3.4 Empirical Experiences ................................................................................92 6.4 A rchitecture Reading ....................................................................93 6.4.1 What Is Software Architecture? ..................................................................93 6.4.2 T raceability-Based Architecture Reading....................................................94 6.4.3 Empirical Experiences ................................................................................95 6.4.4 Other Architecture Reading Techniques .....................................................96 6.5 Scope-Based Reading ..................................................................97 6.5.1 What Is an Application Framework? ...........................................................97 6.5.2 Scope-Based Reading Techniques .............................................................97 6.5.3 Empirical Experiences ................................................................................99 6.6 Summary ....................................................................................100 6.7 References .................................................................................100 ■ Chapter 7: Code Reading Techniques .........................................103 7.1 Code Reading As a Professional Skill .........................................103 7.1.1 Importance of Code Reading ....................................................................103 7.1.2 How Do People Read Code? .....................................................................104 7.2 Reading by Stepwise Abstraction ...............................................105 7.3 Object-Oriented Code Reading ...................................................107 7.3.1 Challenges of Object-Oriented Code Reading ..........................................107 7.3.2 A bstraction-Driven Reading ......................................................................108 7.3.3 Use-Case-Driven Reading ........................................................................109 7.3.4 Empirical Experiences ..............................................................................110 7.4 Object-Oriented Framework Code Reading ................................111 7.4.1 Why Yet Another Object-Oriented Code Reading Technique? ...................111 7.4.2 Functionality-Based Approach to Framework Understanding ..................112 7.4.3 Functionality-Based Reading ...................................................................113 7.4.4 Empirical Experiences ..............................................................................114 x ■ CONTENTS 7.5 T ask-Directed Inspection ............................................................114 7.6 Code Readability Factors ...........................................................115 7.7 Summary ....................................................................................116 7.8 References .................................................................................117 ■ Chapter 8: Conclusion ................................................................119 Index ..............................................................................................123 xi

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.