Link to home
Start Free TrialLog in
Avatar of Marketing_Insists
Marketing_Insists

asked on

basic HMVC diagram

I'm trying to understand HVMC by diagramming a very basic hypothetical GUI app.

Image attached: does it look correct? User generated image
ASKER CERTIFIED SOLUTION
Avatar of marklorenz
marklorenz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ambience
Thats a bit vague, for example I can not tell whether the arrows here are representing some heriarchical arrangement of controllers or what? Are you intending something like a front controller (another pattern often combined with MVC especially in web apps)? See, http://www.martinfowler.com/eaaCatalog/frontController.htm.
You however forgot to add MVC for the status bar?
Note that MVC is more of an architectural pattern than a design pattern and therefore it highlights the essense or the architecture. It alone is not sufficient to fully understand a solution. For example like in your case the traditional MVC does not detail the relationships between controllers (if any). In the traditional MVC, there are just controller, model and view. Your app is therefore has a lot of controllers/models/view. But how do they relate to each other? That is given by variations of MVC and/or other patterns.
 If you GUI is not meant to be for web, then most of the time (in practice) what is otherwise understood as MVC is not so (at least theoretically). There is a line dividing MVC and MVP. I highly recommend that you read http://www.martinfowler.com/eaaDev/uiArchs.html. That will really help you understand where your design stands. By contrasting with MVP you will also realize the limitations of MVC.
Avatar of Marketing_Insists
Marketing_Insists

ASKER

OK, thanks - that site even provided sample code of a Hvmc gui