Coupling Flashcards
What is coupling?
Coupling is the inter-reliance amongst modules. The lower the coupling the better. The tighter the coupling the worst.
Information Exchange and Coupling
The idea is to pass information explicitly, based on need to know.
What is content coupling? (High)
Content coupling occurs when one of the module relies on other modules internal working.
It means a change in the second module will lead to changes in the dependent module
What is common coupling?
Common coupling occurs when the same global data are shared by the two modules.
What is external coupling?
External coupling occurs when an external imposed data format and communication protocol are shared by two modules.
What is control coupling?
Control coupling occurs when one component passes parameters to control the activity of another component.
What is stamp coupling?
Stamp coupling occurs with the sharing of datasets, that don’t need to be shared.
What is data coupling?
Data coupling occurs when two modules interact with each other by means of passing data (as parameters)
What is null coupling?
Null (NO) coupling is considered the best because no sharing of data across an interface. It is considered the loosest (best) form of coupling but not common