Tactics and Principles Flashcards

1
Q

Explain the Component Cohesion principle Reuse and Release (REP)

A
  • Easier reuse: single components could be used in other contexts
  • Easier replacement / release of new versions: single components can be newly released and integrated into the system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the Component Cohesion principle Common Closure Principle (CCP)

A

Gather classes together into one component that change for the same reason at the same time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the Component Cohesion principle Common Reuse Principle (CRP)

A

Don’t force users of a component to depend on things
they don’t need

Need the 3D engine? You get the whole game

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the Component Coupling Principle The Acyclic Dependencies Principle (ADP)

A

Do not allow cycles in the component dependency
graph. (THIS MEANS NO LOOPS IN THE “UML”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the Component Coupling Principle The Stable Dependencies Principle (SDP)

A

Components are hard to change when OTHERS COMPONENT DEPEND ON IT.

Depend in the direction of stability

“The SDP says: less stable components should depend on more stable ones and not vice versa.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the Component Coupling Principle The Stable Abstractions Principle (SAP)

A

A component should be as abstract as it is stable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly