Tagged Questions
21
votes
7answers
1k views
MVC Architecture — How many Controllers do I need?
I have been coding for a while, but mostly scripts and simple applications. I've moved into a new role where it is all about developing Web Apps and using a proper MVC architecture, so I am ...
3
votes
1answer
241 views
Should website frontends be rendered in client-side or server-side?
I've been talking to a colleague that comes from AS3 to the HTML world. He has created a small website (there are apparently no dynamic contents) following the no-flash rules for his very first time, ...
2
votes
1answer
435 views
Newbie ASP.NET developer being forced into MVC4 with WebForms
I recently got hired on as a new ASP.NET developer (C# code behind). When I arrived, I was told that they were moving to MVC 4, and so I bought two books on that. However, the other day I learned ...
9
votes
7answers
337 views
Is the use of security conditionals in a view a violation of MVC?
Often what's displayed to a user (e.g. on a web page) will be based partly on security checks. I usually consider user-level / ACL security to be part of the business logic of a system. If a view ...
1
vote
1answer
115 views
Good resources for a MVC.Net developer going back to WebForms? [closed]
Well it looks like I may be forced to build a new system in webforms after having worked exclusively in MVC for the last 3 years.
Initially I didnt think this was going to be a problem except the ...
1
vote
1answer
63 views
For a front-end application broken down in a MV* manner, should I have models dedicated to UI logic?
I am not talking about simple UI logic like clicking a button directs you to another page, but where one action may result in several different of behavior depending on current application state, and ...
14
votes
3answers
4k views
Where to put business logic in MVC design?
I have created a simple MVC Java application that adds records through data forms to a database.
My app collects data, it also validates it and stores it. This is because the data is being sourced ...
2
votes
1answer
653 views
Binding in the view or the controller?
I've seen 2 different approaches with MVC on the web.
One, like in ExtJS, is to bind the callbacks to the view via the controller. Finding every element on the view and adding the functionallity.
...
5
votes
7answers
4k views
Is there any design pattern except MVC for web?
I want to know are there any design patterns for web besides MVC?
I know there are design patterns as: Registry, Observer, Factory, ActiveRecord ,... and MVC a set of other design patterns and folder ...
2
votes
5answers
222 views
Organizing my products database
I’m developing a web-based store in MVC (very closely based on the SportsStore example in Pro ASP.Net MVC 3 Framework http://www.powells.com/biblio/61-9781430234043-0).
I’m using a SQL database and ...
3
votes
3answers
795 views
Transaction Design Pattern for MVC and location of responsibility?
I'm designing a pretty standard Spring MVC application, and I'm trying to figure out where the responsibility for transaction management should lie.
I've been reading Java Transaction Design ...
12
votes
7answers
2k views
Does MVC apply only to web
It is almost and instantaneous whenever I talk to developers about Model View Controller (MVC) they say you make a request to a url the server builds a entity (MODEL) and provides you with visual ...
5
votes
5answers
928 views
Where should date formatting take place in an MVC pattern?
Suppose that you want to show a user list, on a web application having to handle custom date formats (depending on current selected interface language).
Several locations for applying the date format ...
7
votes
3answers
371 views
Why decouple view and controller (web)?
Why can't we put them in the same page, like each action paired up with its view? Not using code island, but controller code at top then view code at bottom? What are the problems with this approach?
...
3
votes
5answers
472 views
Controller vs Model: Where do I put the processing of user input?
I'm new to MVC and I'm not using a framework (and I'm not going to).
I'm designing my new web application using MVC.
I have the user input received in Controller. Suppose I have form data and an ...