• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Patterns: Mediator vs MVC vs Session Facade?

 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic