{"id":5003159,"date":"2015-12-16T21:45:19","date_gmt":"2015-12-17T05:45:19","guid":{"rendered":"https:\/\/aadev22.local\/?post_type=aa_glossary&#038;p=5003159"},"modified":"2023-03-12T12:41:02","modified_gmt":"2023-03-12T19:41:02","slug":"crc-cards","status":"publish","type":"aa_glossary","link":"https:\/\/agilealliance.org\/glossary\/crc-cards\/","title":{"rendered":"CRC Cards"},"content":{"rendered":"<div>\n<div>\n<p>CRC cards (for Class, Responsibilities, Collaborators) are an activity bridging the worlds of role-playing games and object-oriented design.<\/p>\n<p>With the intent of rapidly sketching several different ideas for the design of some feature of an object-oriented system, two or more team members write down on index cards the names of the most salient classes involved in the feature. The cards are then fleshed out with lists of the responsibilities of each class and the names of collaborators, i.e. other classes that they depend on to carry out their own responsibilities.<\/p>\n<p>The next step is to validate \u2013 or invalidate as the case may be \u2013 each design idea by playing out a plausible scenario of the computation, each developer taking on the role of one or more classes.<\/p>\n<p>The dialogue may go as follows, for instance: \u201cHello, Authentication Controller! I am a Web Request and I would like the contents of this resource.\u201d \u2013 \u201cVery well, let me have your Credentials so I can give them, together with the name of the operation you are trying to perform, to our Access Control List; I will redirect you to one of our View components depending on the result, etc.\u201d<\/p>\n<\/div>\n<\/div>\n<h2>Origins<\/h2>\n<div>\n<div>\n<ul>\n<li>1988: though the idea of reasoning through design issues by anthropomorphizing objects, as in the CRC technique, may seem quite natural, it has had some formidable detractors, for instance, this article by Dijsktra \u201c<a href=\"http:\/\/www.cs.utexas.edu\/~EWD\/transcriptions\/EWD10xx\/EWD1036.html\" target=\"_blank\" rel=\"noopener noreferrer\">On the cruelty of really teaching computing science<\/a>\u201c, which appears just as object-oriented is hitting the mainstream: \u201cin computing science, the anthropomorphic metaphor should be banned\u201d.<\/li>\n<li>1989: Ward Cunningham describes the CRC technique in a joint\u00a0<a href=\"http:\/\/c2.com\/doc\/oopsla89\/paper.html\">article<\/a>\u00a0with Kent Beck; the specific format used for the cards derives from an application designed by Cunningham to store design documentation as a\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/HyperCard\" target=\"_blank\" rel=\"noopener noreferrer\">Hypercard stack<\/a>.<\/li>\n<li>1995: Based on the same inspiration as CRC cards, Ward Cunningham develops the concept of a Wiki, which will later become the ancestor of Wikipedia and undoubtedly one of the most influential ideas in the history of the World Wide Web.<\/li>\n<li>2002: Rebecca Wirfs-Brock and Alan McKean popularized CRC cards through\u00a0their book on responsibility-driven design,\u00a0<a href=\"http:\/\/amzn.to\/2gRhgt9\" target=\"_blank\" rel=\"noopener noreferrer\">Object Design: Roles, Responsibilities and Collaborators<\/a>. (Amazon Affiliate Link)<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>Further Reading<\/h2>\n<div>\n<div>\n<p><a href=\"http:\/\/agilemodeling.com\/artifacts\/crcModel.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Class Responsibility Collaborator (CRC) Model: An Agile Introduction<\/a>\u00a0by Scott Ambler<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Class Responsibility Collaborator (CRC) Cards are an object oriented design technique teams can use to discuss what a class should know and do and what other classes it interacts with.<\/p>\n","protected":false},"author":6000331,"featured_media":8067461,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","categories":[906],"tags":[],"class_list":["post-5003159","aa_glossary","type-aa_glossary","status-publish","has-post-thumbnail","hentry","category-technology"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/aa_glossary\/5003159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/aa_glossary"}],"about":[{"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/types\/aa_glossary"}],"author":[{"embeddable":true,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/users\/6000331"}],"replies":[{"embeddable":true,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/comments?post=5003159"}],"version-history":[{"count":0,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/aa_glossary\/5003159\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/media\/8067461"}],"wp:attachment":[{"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/media?parent=5003159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/categories?post=5003159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agilealliance.org\/wp-json\/wp\/v2\/tags?post=5003159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}