Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which version do I have?
Message
From
20/10/2011 03:34:13
 
 
To
19/10/2011 13:25:00
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Visual Studio
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01526788
Message ID:
01526940
Views:
38
>>>>>Why do you think this?
>>>>
>>>>Because I can build an ASP.NET app easily and quickly w/o screwing around with views and controllers.
>>>>
>>>>I went through all of Pluralsight's videos on MVC along with digging through reams of mostly irrelevant internet crap while trying to get my MVC skill up enough to pass my .NET 4 Developing Web Applications cert. I hope I don't have to deal with it again (of course, now there's MVVM...).
>>>
>>>I wasn't aware that MVVM was relevant outside of Silverlight and WPF.
>>
>>We were discussing this the other day. It's certainly true that MVVM focuses on, and works best with, WPF/Silverlight applications.
>>But a big reason for implementing any design pattern of this type should be that the equivalent of the VM layer be completely UI agnostic. So if it is argued that MVVM cannot be used effectiviely with Winforms or web apps or phone apps then it loses a chunk of its rasion d'etre?
>>
>>TBH I've not tried (or even thought about trying) using our existing VM's against Winforms or in a ASP.NET role (outside of Silverlight) so, although I realize it would certainly not be as easy, I don't know what the real friction points would be.
>>
>>Just my 10c, be interested in other opinions.....
>
>I think that certain patterns fit certain technologies better. For example, MVVM makes data binding a breeze and helps with the intricacies of Silverlight.

I'd argue that it is the other way around. It's the in-built databinding capabilities of WPF/Silverlight that make MVVM work.

MVC makes client-side technologies very easy to use - no so much the architecture itself but the available functionality out of the box.
>
>Is it really realistic to expect to only use one pattern?

It would be a good goal to aim towards.
In general terms it obviously make more sense to retain as many layers as possible for all front ends. For example, if I was asked to create a Winforms version of a current WPF app I'd rather spend time making the Winforms UI work with the VM (maybe a generic shim) than writing a whole new tier to link WinForms to the model. And I certainly wouldn't expect to mess with the model :-{
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform