Why put the business logic in the model? What happens when I have multiple types of storage?
I always thought that the business logic has to be in the controller and that the controller, since it is the ‘middle’ part, stays static and that the model/view have to be capsuled via interfaces. That way you could change the business logic without affecting anything else, program multiple Models (one for each database/type of storage) and a dozens of views (for different platforms for example).
Views : ViewControllers, many to one, or one to one?
I have developed an Android application where, typically, each view (layout.xml
) displayed on the screen has it’s own corresponding fragment (for the purpose of this question I may refer to this as a ViewController
).
Are session aware Models a bad thing?
I’m thinking specifically in Rails here, but I suspect this is a wider question.
How to avoid big and clumsy UITableViewController on iOS?
I have a problem when implementing the MVC-pattern on iOS. I have searched the Internet but seems not to find any nice solution to this problem.
How to avoid big and clumsy UITableViewController on iOS?
I have a problem when implementing the MVC-pattern on iOS. I have searched the Internet but seems not to find any nice solution to this problem.
How to handle notifications to several partial views of the same model?
I am working on refactoring an old simulation of a Turing machine.
How properly perform passing operation result to View
I’m developing web site on self made MVC engine.
I have actionController that handles operations like register, login, post submit and etc. actionController receives operation name and parameters.
Of course it mast handle errors such user with same nick already exists or password is to short about which action handler have to notify user. The question is which is the best way to organize errors, such that View could easily get localized user notification message.
Fitting an established site into a CI framework
I manage a rather large, feature full nightmare of a site which has no end of feature creep settings/options/etc.
Implement service layer in MVC
We have a defined service layer hosted in WCF. We are now building a website that will need to use the services functionality. The website is being written in ASP.NET MVC 4 and I’m trying to decide how to reference the WCF service from the MVC app. It’s a large complex website and it will be changing on a weekly basis.
Using MVC in a Java app
I need to write a cross-platform GUI application to process (in multiple threads) and visualize fairly large quantities of data. Ideally the application should be relatively fast and look good.