Home > Store

CRC Card Book, The

Register your product to gain access to bonus material or receive a coupon.

CRC Card Book, The

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 1997
  • Dimensions: 7-1/2" x 9-1/4"
  • Pages: 320
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-89535-8
  • ISBN-13: 978-0-201-89535-3

Applying the object-oriented paradigm to the development of software requires individuals and teams to think and act differently than when designing procedural projects. While proponents of the object paradigm often say identifying objects is a simple and intuitive process, experienced developers know that this is not always true. The solution is the CRC (Classes, Responsibilities, Collaboration) Card method, a proven technique for identifying classes and visualizing and testing different class-based models during the design phase.

The CRC Card Book covers the CRC method from start to finish, illustrating its application in three different in-depth case studies which supply tips and pointers drawn from real world experience. The case studies are presented in the engaging style of a novella to demonstrate how personalities and organizational culture come into play when using the CRC technique. C++, Java, and Smalltalk experts provide implementation examples in each language. The CRC Card Book demonstrates how to:

  • Discover classes through team brainstorming
  • Refine project requirements
  • Test the conception of the system and evaluate potential paths of collaboration using role play
  • Manage an object-oriented project
  • Implement a CRC design in C++, Java, and Smalltalk; all source code is available via the World Wide Web.

Includes language implementation examples from such noted experts as:

  • Java: Cay Horstman, San Jose State University
  • Smalltalk: Larry Smith, IBM Corp.
  • C++: Jeremy Raw, Interactive Software


0201895358B04062001

Downloads

Source Code

Click below for Source Code related to this title:
c-code.zip

jcode.html

smcode.html

Sample Content

Table of Contents



About the Authors.


Figure List.


Foreword.


Preface.


Acknowledgments.


1. CRC: A Problem-Solving Technique.

The CRC Card.

CRC Is Fun!.

Problem Solving and Insight.

A Parable of Insight.

CRC Cards as a Metacognitive Process.

The Challenge of Finding Classes.

Making CRC Work: Project Management Guidelines.

Summary.



2. OO Concepts and Vocabulary.

Thinking About the World as Objects.

Encapsulation.

Instantiation: Classes and Objects.

Inheritance: Classes, Super-classes and Sub-classes.

Abstract Classes.

Polymorphism.

Frameworks and Patterns.

A Case in Point.

Summary.



3. Getting Started with CRC.

Who Writes CRC Cards?

Two Is Only Company; Ten Is a Crowd.

Reading the CRC Card.

Brainstorming: A Discovery Technique.

Description of Brainstorming Principles.

Using Brainstorming to Find Classes.

The Candidate Class List: Where Do Classes Come From?

Read Over All Requirements Documents.

Look Carefully at Reports.

Conduct Interviews.

Examine Documentation and Files.

Summary.



4. Selecting the Core Classes.

Identify Critical Classes.

Clarify System Scope.

Take Advantage of Hot Spots, Frameworks, and Patterns.

Phantoms and Ghosts, Surrogates and Aliases.

Distinguish Attributes from Classes.

The Annotated Candidate Class List.

Questions to Ask of a "Good Class".

Writing Classes on the CRC Cards.

Assigning Responsibilities.

"WHAT and Not HOW."

Responsibility for Behavior.

Responsibility for Knowledge.

Responsibility Detection Pointers.

Assigning Collaborators.

Identifying Hierarchies.

Summary.



5. A Case Study in Stocks and Bonds.

Saver, Soone, & Eayrne's Cyber-Trading System.

Selecting the CRC Team.

Warming Up the Team.

Brainstorming Candidate Classes.

Selecting Core Classes.

Assigning Responsibilities.

Assigning Collaborators.

Identifying Hierarchies.

Summary.



6. CRC Role Play: Living the System.

The Theory Behind the Practice.

The Problem of Shared Meaning.

Beware the Limits of Working Alone.

Active Learning: The Rationale for Interactive Review.

How CRC Role Play Works.

Developing the Role-Play Scenarios.

The Theory of "Aha!"

The Psychological Model.

Confusion is Rarely Permanent.

Role Play: Performing the System Simulation.

Timing the CRC Role-Play Session.

The Warm-Up.

Enactment.

Assessment.

Summary.



7. Fashion Pro: Role-Playing Core Classes.

Fashion Pro: A New Idea in Garment Creation.

The Fashion Pro Analysis Team.

Recapping the Core Classes.

Sketching Scenarios.

Reusing Analysis Frameworks.

Continuing the Scenario List.

Role-Play Enactment.

Assessment.

Summary.



8. Managing Object Analysis.

Object-Oriented Development Changes the SDLC.

The Waterfall SDLC.

The Spiral SDLC.

The Incremental and Iterative SDLC.

Using the OO SDLC to Manage Projects.

The Pilot Project.

Pilot Project Guidelines.

Choosing a Pilot from Our Case Studies.

Getting Started in Your Organization.

Start-up Guidelines.

Timing.

Training.

SWAT Teams or Gurus?

Accommodating Legacy Systems.

Legacy Integration Guidelines.

Communication by Executables.

Direct Reuse in Responsibilities.

Parts Wrappers.

Metrics for CRC Analysis.

Measuring the CRC Analysis.

The Next Step.



9. Case Study 3: Traffic Control.

Traffic Problems in Chapel Hollow.

The CRC Card Team.

The Project Plan.

Segment 1: Simple Intersection.

Segment 2: Complex Intersection.

Segment 3: Zone Control.

Traffic Management Concepts.

Role Play: The First Enactment.

Assessment: Evaluating the Role Play.

Enactment Two: Verifying the Cards.

Using Role Play to Extend the System.

Looking Ahead.



10. Implementing CRC in Smalltalk.

The Smalltalk Programming Environment.

Smalltalk Coding Guidelines.

Naming Conventions.

Using CRC Cards with Smalltalk.

Design Approach.

Analysis versus Program Design.

Going from Analysis to Design and Code.

Design Enhancements.

Constructing Classes.

Constructing Methods.

First Test: Implementing the Detector.

Second Test: A Simple Intersection.

Third Test: A Full Intersection.

Fourth Test: The Specified Intersection.

Saving the Prototype.

Reusing Components.

Tips and Resources for Further Study.

The Code: Smalltalk Test Method Four.

Output from Smalltalk Test Four.



11. Implementing CRC in C++ and JAVA.

Developing C++ Systems.

Class Interface Design.

Designing Constructors.

Private Implementation.

I/O Frameworks.

C++ Coding Guidelines.

Creating the Traffic System Class Interface.

Public Implementation of Constructors.

Private Implementations in the Traffic System.

Traffic Streams.

List & Queue Services.

The Intersection Class.

The Phase Class.

C++ OO Design Priorities.

Member Functions.

The Traffic System I/O Framework.

User Interactions.

Encapsulating Input.

Encapsulating Output.

Moving to JAVA.

The Java Approach to the Traffic System.

Pointers for More.



12. Transition to Methodologies.

CRC Cards Have Limits.

Why Methodologies Are Powerful.

Methodology Adoption Is a Must.

Once Over the Unified (Booch) Method.

Booch Domain Analysis.

Booch System Design.

Once Over the Shlaer-Mellor Method.

Data-Driven Analysis.

Summing Up Shlaer-Mellor.

Using Formal Methods for the Traffic Case.

Unified (Booch-Rumbaugh) Notation.

Shlaer-Mellor Notation.

CRC Card Software.

Summary.



Appendix A. The CRC Road Map.


Appendix B. Bibliography.


Index. 0201895358T04062001

Preface

Applying the object-oriented paradigm in the development of software applications requires the individual developer and the application team to think and act quite differently than one would in approaching a procedures based project. Object-oriented projects follow a new software development life cycle, one that is both iterative and incremental, a cyclic spiral of analysis, design, and deployment. In this new application-development process, determining and defining properly the classes that are central to the desired system at the beginning of the life cycle is critical. Thorough analysis of the problem and good design up front saves time, and money and helps ensure a successful end result.

Although proponents of the object paradigm often say that identifying objects is a simple and intuitive process, a number of noted experts admit that this is not always true! Particularly with larger-scale applications, omitting a formal analysis of the base classes necessary to the application and the related analysis of their responsibilities and collaboration is certain to lead to missed schedules, blown budgets, and frayed nerves. The solution is to use the CRC process to determine the classes necessary to the system as part of the design process for the application. CRC (classes, responsibility, and collaboration) cards can be used to visualize and test different class-based models during the design phase. It is a proven technique used and advocated by leading methodologists.

The CRC Card Book demonstrates the use of the CRC methodology in a realistic team setting, covering the full range this methodology from initial identification of classes to the production of code based on these classes. At this writing, there are two other books on or incorporating coverage of CRC. Rebecca Wirfs-Brock wrote Designing Object-Oriented Software many years ago. It remains the classic definition of responsibility-driven design, but does not discuss the application of the technique in the team-oriented setting in which large-scale applications are developed. Nancy Wilkinson's book, Using CRC Cards, focuses specifically on the C++ programming community and likewise does not include any illustration of the team approach to class discovery.

The approach of The CRC Card Book is to cover the CRC method from start to finish, demonstrating its application in three different, detailed case-study examples while supplying tips and pointers throughout. The book demonstrates how real teams can use the CRC technique to accomplish a variety of tasks, including:

  • Initially discovering classes

  • Selecting the core classes

  • Acting out class relationships and scenarios

  • Refining the project requirements

  • Furthering project management

  • Serving as a guide to the design of code (in C++, Java, and Smalltalk)

This book is a useful tool for those applying the CRC technique. The tips, tricks, and pointers included are drawn from real-world experience, and all the various tables and lists presented in the text, are collected together in an appendix. The case studies are provided to help you visualize how the guidelines developed in the descriptive chapters might be applied in a real-life situation. All three case studies are based on real systems and are presented in a dramatized style to help you understand how to use the method better. Also included are two examples of how our third case study, the control of automobile traffic intersections, might look when in Smalltalk, C++, and Java. The source code from these chapters is available from Addison-Wesley at http://www.awl.com/cp/bellin-simone.html.

The CRC Card Book is organized as follows:

Brainstorming

We place special emphasis on the dynamics of team work, and how these dynamics are applied to the successful use of CRC. The first team strategy we suggest is brainstorming. We show how this applies to the task of finding classes and listing scenarios.

Role Plays

The second team strategy we recommend is role play. CRC cards provide a uniquely dynamic way of testing out your conception of the system and evaluating potential paths of collaboration. Role plays get everyone involved and invested in the system.

Case Studies

Three case studies are provided to help you visualize how the guidelines developed in the descriptive chapters might be applied in a real-life situation. All three case studies are based on real systems. They are presented in a dramatic, novella style to demonstrate more clearly how personalities and organizational culture come into play when a group is using the CRC technique. This is especially important in the context of brainstorming and role play. We hope that this approach not only will clarify the use of the method, but will provide a little entertainment along the way!

Implementations in Code

We also provide two examples of how our third case study, the control of automobile traffic intersections, might look when a programmer uses CRC cards as the basis for coding in Smalltalk, C++, and JAVA. Three experts in each language community joined with us to write this unique material.

Managing Object Analysis

Following the examination of role playing in the CRC method, we discuss the overall demands of managing an object-oriented project, along with suggestions as to useful metrics for monitoring the process, and for including legacy software in OO systems. We also provide some ideas for the transition from informal modeling with CRC cards to the use of a full-blown, formal methodology such as Schlaer-Mellor or the Unified Modeling Language. The final case study in the book provides additional insight into the application of these techniques.

Transition to Methodologies

In this concluding chapter we discuss the limitations of CRC cards and examine several popular and more comprehensive object-oriented analysis and design methodologies.

CRC Roadmap

Every chapter is full of useful tips, tricks, and pointers drawn from the real world. In addition to the various tables and lists in the text, we've collected these together in an appendix with pointers back into the book, so you can find things quickly when you need them.

Get to Work!

In The CRC Card Book, we have tried to distill a wide range of experiences and training tips for the use of CRC. We hope that some of it applies to all of you, and that all of it applies to some of you. Above all, remember, let CRC make your team work fun!



0201895358P04062001

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020