Tagged Questions
25
votes
8answers
5k 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 ...
19
votes
4answers
9k 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 ...
13
votes
4answers
3k views
Explain Model View Controller
My experience with developing dynamic websites is limited mostly to Java servlets. I've used Tomcat to develop various Java servlets, and I wouldn't hesitate to say that I'm reasonably proficient ...
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 ...
9
votes
7answers
455 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 ...
7
votes
7answers
8k 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 ...
7
votes
3answers
441 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?
...
6
votes
7answers
853 views
What motivated you to learn ASP.NET MVC? What have you done with it so far? [closed]
I'd like to know what motivated you to learn ASP.NET MVC, and what have you done with it.
... was it a particular feature?
... do you have plenty of spare time?
... did your job require you to ...
5
votes
5answers
1k 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 ...
4
votes
1answer
463 views
MSFT released “ASP.NET Developer Guidance” PDF… What's missing in your opinion?
Microsoft created this ASP.NET documentation map that aggregates a ton of great links into a single PDF.
...
3
votes
5answers
761 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 ...
3
votes
3answers
1k 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 ...
3
votes
1answer
622 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, ...
3
votes
5answers
1k views
Programming PHP without MVC, classes or framework: rewrite or continue on new features?
I have been programming for several years now, and back then (learning PHP) I've didn't learn to program using classes, MVC-logic or using any frameworks. I found my self solving my problems very well ...
2
votes
1answer
616 views
I'm creating my own scalable, rapid prototyping web server. How should I design it?
I'm going to create my own web server that focuses on scalability, rapid prototyping and the use of JavaScript as the server's scripting language, much like node.js. It will use a ...
2
votes
5answers
277 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 ...
2
votes
1answer
656 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 ...
2
votes
1answer
772 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.
...
1
vote
1answer
149 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
147 views
Web design pattern
I am building a small website, in PHP and I am using MVC design pattern for the UI.
In the future I will need to add mobile support for my website. It will be in the sub domain "m" like everyone.
All ...
1
vote
1answer
74 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 ...
1
vote
1answer
74 views
Web Application: Combining View Layer Between PHP and Javascript-AJAX
I'm developing web application using PHP with CodeIgniter MVC framework with a huge real time client-side functionality needs. This is my first time to build large scale of client-side app. So I ...
0
votes
2answers
146 views
Is it ok to start with templates in MVC development?
I'm new to web development and I've started working on a project in my company that uses DJANGO. I feel it flexible to start my development straight first from the templates. I think it will be easier ...
0
votes
1answer
40 views
Using different DB Connections for different user groups in a web framework
Database designers building enterprise systems usually assign different sets of privileges to different users of DBMS. They can be as granular as needed.
However, in my experience, web frameworks ...
0
votes
1answer
223 views
How would I structure my code into an MVC format?
I want to have the home page (root of the website), check if a cookie exists for a user being logged in, and then based off of that determining whether or not to load the sign up page (landing page) ...
-1
votes
2answers
201 views
Does using a cookie make my web application stateful [closed]
No session data is stored server side, the cookie contains a token that authenticates user.