Hot answers tagged mvc
While there are no hard rules about the size of a controller, 5000 lines is clearly beyond any reasonable size for a hand-coded class. Chances are this class is violating the Single Responsibility Principle (SRP) and therefore is flawed. You most likely have several methods in there that can logically be grouped together. See if you can't extract methods off ...
That's the responsibility of your controller as that is the class that is responsible for receiving data from the view and translating it onto methods for the model, as well as receiving data from the model and handing it up to the view. This does not mean the controller has to do this directly however. Your model can use ViewBuilders for example to build ...
There exist bindings you can use to bind list items with data. This does exactly what I need. http://www.vogella.com/tutorials/EclipseDataBinding/article.html#tutorial_observablemaplabelprovider
Unless you come up with some specific code that changes my mind, I'm going to say that MVCS is just a slight variation on MVC that makes it clearer that the Business Domain lives in the Model, and is technically separate from the data Store. MVC just includes S (the data store) as part of the Model, but the business domain always lives there.
As the previous answer states, separation of concerns is a good idea. In your context, this basically means grouping related code into separate controllers, rather than grouping based on the design pattern that they are all controller operations. This means that if your application needs to be refactored or parts reused in some way, that you won't have to go ...
In general I think it is good to keep the separation of concerns in mind. Don't hesitate to create new views and new controllers. If you correctly define the responsibility of each controller, in the end your code is much easier to maintain. In your specific case, if you haven't already, have a look at directives in AngularJS. They are pretty well explained ...
Only top voted, non community-wiki answers of a minimum length are eligible