Click here to Skip to main content
15,920,383 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Progress with MVC Pin
Marc Clifton13-Apr-15 4:52
mvaMarc Clifton13-Apr-15 4:52 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:00
User 1013254613-Apr-15 4:00 
GeneralRe: Progress with MVC Pin
Marc Clifton13-Apr-15 4:09
mvaMarc Clifton13-Apr-15 4:09 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:21
User 1013254613-Apr-15 4:21 
GeneralRe: Progress with MVC Pin
Marc Clifton13-Apr-15 4:31
mvaMarc Clifton13-Apr-15 4:31 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:42
User 1013254613-Apr-15 4:42 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:56
professionalBergholt Stuttley Johnson13-Apr-15 4:56 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:05
User 1013254613-Apr-15 5:05 
A common set of action names, like: View, Edit, Save, Delete - if you like that kind of thing (I personally don't). But then some views might need other actions: ConfirmDelete, SaveAddress, AddItemToBasket, etc..

Basically, what we end up with is a view controller for every view (isn't that just the same as webform's code behind?)..

In enterprise web applications, there can be hundreds or even thousands of views (including partial views). Every one (in general) will have repeated code like using "standard" ASP.NET MVC:
C#
protected void ActionResult Index()
{
    return View();
}
Any action that does nothing except return a view is extraneous code in my book. You would't write code this way (multiple unique classes with repeated, near identical method bodies) in any other context, so why do we accept it with view controllers?
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.


modified 31-Aug-21 21:01pm.

GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:36
professionalBergholt Stuttley Johnson13-Apr-15 5:36 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:46
User 1013254613-Apr-15 5:46 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson14-Apr-15 21:28
professionalBergholt Stuttley Johnson14-Apr-15 21:28 
GeneralRe: Progress with MVC Pin
User 1013254614-Apr-15 22:30
User 1013254614-Apr-15 22:30 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson14-Apr-15 22:47
professionalBergholt Stuttley Johnson14-Apr-15 22:47 
GeneralRe: Progress with MVC Pin
User 1013254614-Apr-15 23:05
User 1013254614-Apr-15 23:05 
GeneralRe: Progress with MVC Pin
Kevin Marois13-Apr-15 4:52
professionalKevin Marois13-Apr-15 4:52 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:58
User 1013254613-Apr-15 4:58 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 7:57
Vark11113-Apr-15 7:57 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:04
User 1013254613-Apr-15 8:04 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 8:06
Vark11113-Apr-15 8:06 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:14
User 1013254613-Apr-15 8:14 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 8:23
Vark11113-Apr-15 8:23 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:30
User 1013254613-Apr-15 8:30 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:02
professionalBergholt Stuttley Johnson13-Apr-15 5:02 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:16
professionalBergholt Stuttley Johnson13-Apr-15 4:16 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:22
User 1013254613-Apr-15 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.