Maybe I have taken too many mock exams? These
pattern questions all start looking the same to me. These three patterns have somewhat similar definitions in relation to "coupling" - to the point I don't know what reality is.??
For example - here are some questions I made up:
Question 01: What pattern can be used to
promote loose coupling? Select one of the following three patterns:
Mediator
Model View Controller
Session Facade
Question 02: What pattern can be used to
correct tight coupling? Select one of the following three patterns:
Mediator
Model View Controller
Session Facade
Question 03: What pattern can be used to
prevent tight coupling? Select one of the following three patterns:
Mediator
Model View Controller
Session Facade
What are other people's thoughts about this?
I was thinking the Mediator pattern is for "promoting loose coupling"(per GoF book), however, the "prevention" and "correction" of tight-coupling doesn't seem clear to me. It seems like any of the three could be a possible answer.
thanks!
Kevin Thompson