Click here to Skip to main content
15,905,316 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
Bergholt Stuttley Johnson13-Apr-15 5:05
professionalBergholt Stuttley Johnson13-Apr-15 5:05 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:06
User 1013254613-Apr-15 5:06 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:23
professionalBergholt Stuttley Johnson13-Apr-15 5:23 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:24
User 1013254613-Apr-15 5:24 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 5:41
professionalBergholt Stuttley Johnson13-Apr-15 5:41 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 5:57
User 1013254613-Apr-15 5:57 
GeneralRe: Progress with MVC Pin
Vark11113-Apr-15 8:13
Vark11113-Apr-15 8:13 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 8:28
User 1013254613-Apr-15 8:28 
Vark111 wrote:
Sure. If you want to have lots of headaches and duplicated code.

Hey, that's my point Smile | :) Standard ASP.NET MVC means you end up with code in WebAPI and in the view controller for the same view.

I'd disagree about the headaches though - a single page app may only have one URL to a view, but depending how it's configured it could well be returning partial views as a HTML response to an AJAX call, as opposed to JSON encoded data (I've developed systems that do both). You can get just as many issues using ASP.NET MVC and Razor without AJAX or WebAPI once an application gets complex enough.

A SPA with only a few different HTML elements can be done without using partial views, but if you're working on a large-scale application it's just not practical to try and load every possible combination of HTML elements the first time you hit the page. One system I recently worked on (not my design) had over 6,000 views/partial views.

I really hate duplicated or unnecessary code, that's why I'm talking here about actually removing actions from view controllers that only return a view leaving only code that actually performs a logical function (or even better, removing the controller completely where only static content is contained in a view).
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
Vark11113-Apr-15 8:49
Vark11113-Apr-15 8:49 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 22:05
User 1013254613-Apr-15 22:05 
GeneralRe: Progress with MVC Pin
#realJSOP13-Apr-15 4:23
professional#realJSOP13-Apr-15 4:23 
GeneralRe: Progress with MVC Pin
User 1013254613-Apr-15 4:27
User 1013254613-Apr-15 4:27 
GeneralRe: Progress with MVC Pin
JimmyRopes13-Apr-15 4:12
professionalJimmyRopes13-Apr-15 4:12 
GeneralRe: Progress with MVC Pin
Simon_Whale13-Apr-15 4:18
Simon_Whale13-Apr-15 4:18 
GeneralRe: Progress with MVC Pin
Nagy Vilmos13-Apr-15 4:22
professionalNagy Vilmos13-Apr-15 4:22 
GeneralRe: Progress with MVC Pin
Simon_Whale13-Apr-15 4:25
Simon_Whale13-Apr-15 4:25 
GeneralRe: Progress with MVC Pin
Sascha Lefèvre13-Apr-15 4:23
professionalSascha Lefèvre13-Apr-15 4:23 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:29
professionalBergholt Stuttley Johnson13-Apr-15 4:29 
GeneralRe: Progress with MVC Pin
Simon_Whale13-Apr-15 4:31
Simon_Whale13-Apr-15 4:31 
GeneralRe: Progress with MVC Pin
Bergholt Stuttley Johnson13-Apr-15 4:40
professionalBergholt Stuttley Johnson13-Apr-15 4:40 
GeneralRe: Progress with MVC Pin
Mark_Wallace13-Apr-15 4:44
Mark_Wallace13-Apr-15 4:44 
GeneralRe: Progress with MVC Pin
CDP180213-Apr-15 4:43
CDP180213-Apr-15 4:43 
GeneralRe: Progress with MVC Pin
Kevin Marois13-Apr-15 4:55
professionalKevin Marois13-Apr-15 4:55 
GeneralRe: Progress with MVC Pin
Mike Hankey13-Apr-15 4:46
mveMike Hankey13-Apr-15 4:46 
GeneralRe: Progress with MVC Pin
#realJSOP14-Apr-15 5:24
professional#realJSOP14-Apr-15 5:24 

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.