views:

35

answers:

1

Is MVC architecture appropriate for an app that is a UI centric app?

Example: you want to build a basic flowchart app. Does it make sense to make the GUI components the view, the "node" and "line" objects part of the model, and the click handlers the controllers?

It feels weird to me because there is not much functionality in the model here...

A: 

In your case, M is definitely not needed. So you can skip it. Nobody is forcing you to comply with MVC.

If you're using a MVC framework, then don't use features specific to M. Simple. :)

pavanlimo
But in reality, these objects will need to maintain some kind of state ful properties like x and y position, or width and height, etc. This sounds like the model objects are necessary
Bain Markev