Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in design patterns

 
swapna rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Javabeat i have the below question.

4.Which of the following design patterns is used to separate the task of writing the GUI screens and business logic?
Select 1 correct option.
A.View Logic
B.Front Controller
C.Model View Controller
D.Business View
E.Business Delegate

My answer is B and C.But the mock exam gave the answer as only Front Controller. Even MVC pattern separates business logic and presentation logic. Please let me know,if I'm wrong.
 
Kumar Garlapati
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MVC, Model View Controller, does some thing extra then Front Controller(is a part of MVC).
as the question was very much specific to Front Controller, answer should be 'B'.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the question doesn't describe Front Controller at all.

The answer should only be MVC.
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Marc. I see very little in the question (what we call the "stem") that relates to the Front Controller pattern. The FC pattern primarily concerned with handling common "infrastructure" tasks that all of your HTTP requests need to process. But "separation of business from presentation logic" falls more in line with the MVC pattern.

-Bryan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic