1 / 8

CRC Cards

CRC Cards. OOD - Derek Peacock. Problem Solving Technique. Classes Responsibilities Collaborations. Process. Brainstorming Insight Fun Finding classes Role Play Finding Responsibilities Finding Collaborations Refinement. The CRC Card.

joel-lloyd
Download Presentation

CRC Cards

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CRC Cards OOD - Derek Peacock

  2. Problem Solving Technique • Classes • Responsibilities • Collaborations

  3. Process • Brainstorming • Insight • Fun • Finding classes • Role Play • Finding Responsibilities • Finding Collaborations • Refinement

  4. The CRC Card Class Name:Super Class Sub Class Responsibility Collaboration

  5. Brainstorming • Use Round-Robin to get candidate classes • Write down each suggestion • Keep up momentum by passing • No idea is wrong • When all candidates are identified discuss, select and winnow down • Select Core Classes, think simple

  6. Good Classes • Have clear name recognized by domain experts • Has singular noun • Has responsibilities • Is needed by other classes • Actively participates in system

  7. Responsibilities • What does the class need to do not How does it do it • What does the class need to know

  8. Collaborations • Use Scenarios to identify scenarios • Role Play the Scenario

More Related