Skip to main content

9 docs tagged with "grasp"

View all tags

Controller

Assign system event handling to a non-UI class that mediates between UI and domain logic

Creator

Assign object creation responsibility to the class best suited to create instances

High Cohesion

Keep class responsibilities focused and strongly related to its purpose

Indirection

Assign responsibility to an intermediate object that mediates between other objects

Information Expert

Assign responsibility to the class that has the information needed to fulfill it

Low Coupling

Minimize dependencies between classes to improve flexibility, testability, and maintainability

Polymorphism

Handle object type variations through polymorphic types rather than conditional logic

Protected Variations

Protect classes from variations in other classes using abstraction and stable interfaces

Pure Fabrication

Create artificial classes to represent operations when assigning to domain objects would violate other principles