MVC (Model-View-Controller) is a software architecture pattern that enforces separation of concerns.
3
votes
2answers
896 views
Packages organisation with MVC design pattern
I have been programming quite a lot now and still can't decide which of these packages hierachies was the best:
package1
Class1Controller
Class1Model
Class1View
package2
Class2Controller
...
7
votes
2answers
996 views
Decoupling UI code?
In my application I have several event handlers that perform some action in response to user interface events such as a button click or menu selection. The code in these event handlers looks like ...
1
vote
2answers
339 views
Storing page-specific javascript on an AJAX driven site?
I have a general question about the placement of javascript code in a AJAX-driven web application. At a previous job, we tended to throw everything in one monolithic file. When maintaining that file ...
6
votes
1answer
396 views
If multitenancy is a priority, should I store site content in the database?
I have a multi tenant ASP.NET MVC website and all client specific text is stored in resource files. Every time someone wants to change text I have to jump through hoops and fill out forms and let ...
-2
votes
2answers
377 views
why use a form object when you can get needed data from view object's html?
I am working with server side code.
I have a request object that handles request data validation and filtering.
I have a view object that uses template files to generate html for output. the ...
5
votes
1answer
517 views
How can I manage my ViewControllers in my game?
I'm building a very simple iOS game that doesn't require any fancy OpenGL; I'd like to stick with Core Graphics & Core Animation. I'd like to make this a fullscreen game, and my question is of ...
2
votes
2answers
468 views
Obtaining the best of both worlds: MVC and WebForms
Rather than asking a general question about WebForms vs MVC (such as in ASP.NET v/s ASP.NET MVC), I have a specific quesiton.
It appears the main differences between the two approaches are
WebForms ...
3
votes
5answers
408 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
2answers
258 views
New PHP project, how to best architect it
I have already done a PHP project, and I did a number of things pretty wrong :)
I just had all pages as scripts with php mixed in with html. I also wasn't using a framework like cakephp. And I didn't ...
1
vote
1answer
789 views
Do modular PHP frameworks really improve applications?
One of the goals of modular frameworks like Kohana or Alloy is to make it easy to add and remove components (i.e. "plugins" or "modules").
However, in all the larger projects I have ever worked - the ...
7
votes
3answers
252 views
Architecture of interaction modes (“paint tools”) for a 3D paint program
We are developing a Qt-based application to navigate through and paint on a volume treated as a 3D pixel graphic. The layout of the app consists of three orthogonal slice views on which the user may ...
3
votes
1answer
121 views
Workflow for a plugin assignment
I'm starting a new project in PHP, a plugin for a website that grabs additional data from it through cURL, getContents etc and re-tabulates it in excel. It's a local project, basic script like with a ...
10
votes
1answer
631 views
Patterns for ajax-heavy web applications
Up until now, I've been a great fan of the MVC pattern for developing web applications. For the web, I've developed mostly in PHP (with the Kohana and CodeIgniter frameworks) and Ruby (RoR).
As my ...
7
votes
3answers
469 views
What is the object-oriented thought process?
I've been studying OOP in conjunction with Zend's MVC implementation for the past few months. I'm pretty new to programming, generally, but I feel strongly that I should learn things the 'right' way, ...
31
votes
6answers
11k views
Why should I use an MVC pattern?
It seems everyone doing web applications nowadays wants to use MVC for everything. I find it hard to convince myself to use this pattern, however. I understand the general idea is to separate the ...
1
vote
1answer
363 views
Model-View-Controller and client-side concurrency responsibility
In a web application that has a significant ajax component, where is the best place for the client-side concurrency responsibility to lie?
We're trying to use MVC on both the server application (LAMP ...
11
votes
3answers
844 views
What are the disadvantages of using/writting a .Net Custom Membership Provider?
Recently, I posted the following question on SO: http://stackoverflow.com/questions/7197337/using-asp-net-membership-provider-with-an-existing-user-database
As you may notice, I ended up answering my ...
8
votes
1answer
223 views
How to make models do more than setting and getting data and validation
I am asking this question because after developing a few small custom cms solutions in a framework, I developed the idea that Models can be easily substituted with ORMs which ease up the task of ...
6
votes
3answers
243 views
Drawing the line between models & libraries?
As my webapps increase in size, so does the complexity. In order to keep my classes & files structured and easy-to-access, I am starting to get more and more confused:
I have some very clearly ...
3
votes
2answers
521 views
Rails: controllers vs models which should handle file manipulation
This post by Jamis Buck about keeping Rails controllers skinny has always stuck with me. I have an app in which a zip file consisting of an XML file and some images is uploaded and used to create the ...
6
votes
3answers
416 views
What do I call a non-MVC pattern?
I am finishing my project and in my thesis I am explaining why I used an MVC pattern to build my website, and have stated the advantages of designing it this way.
However, if I had not used MVC and ...
4
votes
1answer
461 views
How can a web site be set up using the MVC Pattern? (Without MS ASP.NET MVC)
We used a contractor to create the initial version of our site; they used their own MVC-pattern code-generator to create the (ASP.NET / C#) site and customized from there. That was turned over to us ...
7
votes
2answers
437 views
How can I “get in the know”?
My company posted a job listing to get me a helper. A recruiter called me today and all he kept saying was "MVC this Entity Framework that..." - He sounded shocked when I said the project uses ...
3
votes
2answers
627 views
In MVC should a model handle validation?
I am trying to re-architect a web application I developed to use the MVC pattern, but I'm not sure if validation should be handled in the model or not. For example, I'm setting up one of my models ...
2
votes
5answers
308 views
Should a web designer know server-side coding?
We're implementing an CMS based on ASP.NET MVC. Now, any designer should be able to provide themes for this CMS. But to write a theme, they need to be able to modify the generated HTML, thus the ...
9
votes
4answers
1k views
Should I include HTML markup in my JSON response?
In an e-commerce site, when adding an item to a cart, I'd like to show a popup window with the options you can choose. Imagine you're ordering an iPod Shuffle and now you have to choose the color and ...
12
votes
4answers
887 views
Is Unit Testing the primary objective of MVC Pattern?
Recently in an interview, one of the questions was 'Why do we use MVC?’
I just answered that it is much closer to how, many of the real world systems are! Explained the benefits it has when it comes ...
4
votes
3answers
2k views
MVVM or MVC? Want to use the same set of classes for WPF and ASP.NET
I am a newbie in terms of Design Patterns. I just started learning MVC when I am hearing a new buzz, MVVM.
I want to learn the insights of both of these by redesigning an old inventory and invoicing ...
5
votes
2answers
2k views
How to completely decouple Model from View/Controller in Java Swing
Is there a collection of commonly-agreed-upon design guidelines for separating the Model classes from the View/Controller classes in a Java Swing app? I'm not so concerned that the View/Controller ...
2
votes
4answers
1k views
What to explain when asked “How did you implement MVC”?
I have a project on my resume in which we had used MVC Architecture and Java, JSP and MySQL. Hence during the interviews if the position requires experience about MVC Architecture, I have to face the ...
10
votes
4answers
2k views
Are Django forms violating MVC?
I just started working with Django coming from years of Spring MVC and the forms implementation strikes as being slightly crazy. If you're not familiar, Django forms starts with a form model class ...
15
votes
7answers
2k views
Is the MVC pattern used in industry a lot? What's all the hype? [closed]
I'm a student but I am hopefully moving into the software industry soon. There seems to be a lot of hype about the MVC software pattern. I noticed that PHP frameworks are often MVC, what about ...
1
vote
4answers
303 views
Need recommendation for transferring ASP.NET MVC skills to PHP
I am looking to translate my skills in .NET to PHP - specifically in regards to ASP.NET MVC. At work I am currently using .NET MVC 2.0 on a variety of projects and thoroughly enjoy the platform. ...
2
votes
4answers
724 views
Building websites, which is the better approach MVP or MVC?
I'm looking for feedback on MVP and MVC patterns used as a framework to build a website. I've used both with a certain degrees of success and failure. Furthermore I've worked in places which have ...
1
vote
2answers
317 views
Naming controllers and their methods
I currently use one controller per action. One of the problems—sort of—I encountered is when naming the methods of these controllers, which only have one.
Should I use a generic method name like get() ...
1
vote
3answers
727 views
Models should match table structure, Viewmodels match how the data need to be displayed?
I have a database table with many columns, that I want to display over several pages, similar to a turbo tax style information collection form. With only 1 or 2 items per page.
Is it right to ...
5
votes
5answers
617 views
Multi MVC processing vs Single MVC process
I've worked fairly extensively with the MVC framework cakephp, however I'm finding that I would rather have my pages driven by the multiple MVC than by just one MVC. My reason is primarily to maintain ...
2
votes
5answers
380 views
Is SOA suitable for developers or only for business/IT management people?
Let's suppose you're the lead of a team of developers that needs to build a big information system such as an ERP or Human Resources software, or whatever system that is composed by multiple business ...
6
votes
1answer
331 views
MVC framework seems to suggest creating possibly hundreds of .aspx or .cshtml pages. How do I avoid this?
So, I was playing around with MVC3. Correct me if I'm wrong but based on all examples I've seen, it is suggested that you pretty much have a page for every model and Action from the Controller. So ...
11
votes
5answers
862 views
When to use MVC
I'm building a site with PHP and a MySQL backend. But, I am currently not using any type of framework. Should I be using Model View Controller?
4
votes
4answers
426 views
When developing a MVC web application should views or models be created first?
I have to build a new application from scratch, so I want to implement it using MVC3 and try to follow general best practices as closely as possible. However, I'm developing it as a one man army. ...
3
votes
2answers
372 views
Use controller in view in MVC
I have a problem convincing my team mates why we shouldn't use (directly reference) the controller in the view when developing components in the spirit of MVC.
I have invoked decoupling and natural ...
4
votes
4answers
287 views
What's the correct approach for passing data from several models into a service?
I have an AccountModel and a page where the user can upload a file. What I would like to have happen is when the user uploads the file. The PageController does something like the following. this is ...
12
votes
7answers
5k views
Do experienced Ruby on Rails developers use scaffolding?
In the Ruby on Rails tutorial, I read something that suggested that experienced developers do not use scaffolding since they tend to like to just write the code to connect the MVC on their own.
In a ...
12
votes
8answers
2k views
How do you organize your MVC framework while supporting modules/plugins? [closed]
There are a two main codebase structures that I have seen when it comes to MVC frameworks. The problem is that they both seem to have an organisational bug that goes with them.
Standard MVC
...
4
votes
1answer
223 views
What is the best practice to develop a visual component in Flex Hero?
What is the best practice to develop a visual component in Flex Hero?
I do it like this:
I consider a component has 2 "parts", the declarative part (the visual sub-components) which I define in the ...
0
votes
2answers
117 views
Looking for creative ways to route URI to controllers
I'm looking for new ways of dealing with the problem of finding the correct controller to deal with the resource the user is requesting.
Most frameworks simply parse the URI out into segments, check ...
7
votes
3answers
616 views
MVC : Fully populated models or Partially Filled Models?
This one has haunted me for so long. When doing MVC programming what do you think is the better programming practice? Should one use fully populated models or the partially filled ones, especially ...
3
votes
2answers
2k views
In MVC where do you put action methods for views in the shared directory?
I have a website built using a MVC.NET framework with C# that uses some shared views and partial views. In order to display the views properly there is a bit of code that must reside in the ...
6
votes
8answers
274 views
What benefit do I get from good methodology?
One of my friends has worked for nearly 10 years, asked me why he needs to learn new things such as unit-testing, MVC, Multi-tier architecture (he creates 3-tier application but designs like 2-tier), ...