wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Patterns: Mediator vs MVC  vs Session Facade? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Patterns: Mediator vs MVC  vs Session Facade?" Watch "Patterns: Mediator vs MVC  vs Session Facade?" New topic
Author

Patterns: Mediator vs MVC vs Session Facade?

Kevin Thompson
Ranch Hand

Joined: May 04, 2001
Posts: 237
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
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Most people have a perfect score in patterns, or miss one of six. If you know them this well it's time to move on.
MVC and Session Fascade are not in the 23 anyway.
Kevin Thompson
Ranch Hand

Joined: May 04, 2001
Posts: 237
MVC and Session Facade ARE on the exam. There are questions on the exam about loose coupling/tight coupling that have selections like I suggested above.
How do I know for a fact that these patterns are on the exam? Becuase I took the exam several months ago and failed, and these patterns were there.
I missed the question - because these patterns look alike to me.
In addition, there are a number of posts from people here and also on Yahoo saying that they also seen these patterns on exam.
Kevin Thompson
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
How many of the six questions on patterns did you miss?

Did you read this post?
test distribution
[ August 20, 2002: Message edited by: Rufus Bugleweed ]
SJ Adnams
Ranch Hand

Joined: Sep 28, 2001
Posts: 925
Even if you don't know what the patterns are, as long as you understand what 'coupling' is then you will be able to answer the questions.
MVC promotes loose coupling - it should be straightforward to change from a html based client to a java (thicker) client.
Mediator promotes loose coupling since objects cannot refer directly to each other.
MVC does not prevent coupling.
If you are trying to add an alternate client to a coupled MVC design then you could use a Facade pattern.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Patterns: Mediator vs MVC vs Session Facade?
 
Similar Threads
Design Pattern for GUI implementation
More on MVC
Greetings - J2EE Design Patterns Applied
Getter/Setter vs Private
Part I: GoF patterns - Facade vs Mediator