GRASP (object-oriented design): Difference between revisions

Content deleted Content added
changing citation format
moving div tags
Line 5:
"The critical design tool for software development is a mind well educated in design principles. It is not the UML or any other technology" (Larman, Craig. ''Applying UML and Patterns - Third Edition''. [http://authors.phptr.com/larman/uml_ooad/index.html]). Thus, GRASP is really just a toolset, a learning aid to help in the design of object oriented software.
 
 
==Information Expert==
<div id="informationexpert"/>
==Information Expert==
The '''Information Expert''' pattern provides the general principles associated with the assignment of responsibilities to objects. The information expert pattern states that responsibility should be assigned to the '''information expert'''—the class that has all the necessary information. Systems which appropriatley utilize the information expert pattern are easier to under, maintain and expand as well as increase the possibilitiy the an element can be reused in future development.<ref name="larman294">(Larman 294)</ref>
 
Line 29 ⟶ 30:
This pattern helps determine who should be responsible for creating objects when there are special considerations, such as complex creation logic. This is achieved by creating a '''Pure Fabrication''' object, called '''Factory''' that handles the creation.
 
==High Cohesion==
<div id="highcohesion"/>
==High Cohesion==
'''High Cohesion''' is an evaluative pattern that attempts to keep objects appropriatley focused, manageable and understandable. High cohesion is genereally used in support of Low Coupling. High cohesion means that the responsibilities of a given element are strongly related and highly focused. Breaking programs into classes and subsystems is an example of activies that increase the cohesive properties of a system. Alternativley, low cohesion is a situation in which a given element has too many unrelated responsibilites. Elements with low cohesion offer suffer from being hard to comprehend, hard to reuse, hard to maintain and adverse to change.<ref name="larman314">(Larman 314-315)</ref>