Home > Store

CRC Card Book, The

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

CRC Card Book, The


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


  • 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



Source Code

Click below for Source Code related to this title:



Sample Content

Table of Contents

About the Authors.

Figure List.




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.


2. OO Concepts and Vocabulary.

Thinking About the World as Objects.


Instantiation: Classes and Objects.

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

Abstract Classes.


Frameworks and Patterns.

A Case in Point.


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.


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.


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.


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.




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.



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.



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.


Appendix A. The CRC Road Map.

Appendix B. Bibliography.

Index. 0201895358T04062001


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:


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!



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership