Monday, December 10, 2018

GRASP in OOD

GRASP in OOD (object-oriented design)


General Responsibility Assignment Software Patterns (or Principles), abbreviated GRASP, consist of guidelines for assigning responsibility to classes and objects in object-oriented design, as we can read at wikipedia.

The different patterns and principles used in GRASP are: 
  1. controller, 
  2. creator, 
  3. indirection, 
  4. information expert, 
  5. high cohesion, 
  6. low coupling, 
  7. polymorphism, 
  8. protected variations, 
  9. and pure fabrication. 


All these patterns answer some software problems, and these problems are common to almost every software development project. These techniques have not been invented to create new ways of working, but to better document and standardize old, tried-and-tested programming principles in object-oriented design.


No comments: