Brain Dump

CRC Card Prototyping

Tags
soft-eng

Is a low-tech [see page 5, strategy] to prototype useful object concepts.

The general [see page 6, technique] is:

  • Use 15cm x 10cm file index cards (this sizes forces decomposition).
  • Write the name of each candidate class on a card.
  • Write down 2-7 responsibilities of this class.
  • If the card has no responsibilities, delete it.
  • If it has too many responsibilities [see page 8, split] them into two new sub-cards.
  • Identify and write down any other classes that the card collaborates with.
  • On the other side of the card write the:
    • Category (model, role, class, view, control, etc.)
    • Attributes (state, instance variables)
    • Constraints (any business rules for the attributes)