Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Pattern Question

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the "Controller" design pattern considered to be the same thing as the "Model-View-Controller" design pattern?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the "Controller" pattern is not the same as "Model-View-Controller". That said, I must confess I am not certain which pattern you are talking about when referring to "Controller" (did you mean Front Controller?). But I know it's not the same as MVC.
I have a vague memory of a very generic pattern that was referred to as "Controller". The description was something like this:
Make a Controller component responsible for handling system events and delegate the action to be taken.
Basically this is exactly what the "C" in "MVC" is doing but "MVC" is still three letters...
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Controller and MVC are both architecture patterns. MVC is more popularly known as an architecture rather than pattern. Though MVC is actually a pattern used as a foundation architecture which divides the application into component layers viz. Model, View and Controller.
To conclude:
Both are different set of patterns.
yup
 
Mike Cunningham
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. That helps me out.
 
I want my playground back. Here, I'll give you this tiny ad for it:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic