ASD-Notes

My notes on Advanced-Software-Development

View the Project on GitHub angus-mackenzie/ASD-Notes

Design Patterns

Domain Model

Design Model

Sample UP Artefact Relationships

Artefact

Responsibility-Driven Design

Sequence Diagram

GRASP

I don’t quite GRASP this section :wink:

Information Expert

AKA - Expert

Example

Info Expert

Answer:

Definition continued:

Class Responsibility
Sale Knows Sale total
SalesLineItem Knows line item total
ProductSpecification Knows product price

Creator

Example

Creator

Controller

Example

Low Coupling

Low Coupling

High Cohesion

Example

High Cohesion

High Cohesion

Coupling and Cohesion

Polymorphism

Pure Fabrication

In other words don’t go down a chain of links to indirectly known “strangers”. This avoids coupling to distant objects.

Use Case

Designing for Visibility

- GoF

Singleton

Only one instance of a certain class never two. Structure for a unique object or sub-system

Composite Pattern

Anatomy of a preference dialog

Preferance

UML Object diagram for UI Preference

UML

Applying Composite Pattern to UI Widgets

Observer Pattern