80 likes | 243 Views
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.
E N D
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 Class Name:Super Class Sub Class Responsibility Collaboration
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
Good Classes • Have clear name recognized by domain experts • Has singular noun • Has responsibilities • Is needed by other classes • Actively participates in system
Responsibilities • What does the class need to do not How does it do it • What does the class need to know
Collaborations • Use Scenarios to identify scenarios • Role Play the Scenario