Click here to Skip to main content
15,885,720 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Need some Simple Code Pin
Glosse16-Aug-11 4:30
Glosse16-Aug-11 4:30 
GeneralRe: Need some Simple Code Pin
_Maxxx_17-Aug-11 13:52
professional_Maxxx_17-Aug-11 13:52 
GeneralRe: Need some Simple Code Pin
SledgeHammer0117-Aug-11 14:15
SledgeHammer0117-Aug-11 14:15 
GeneralRe: Need some Simple Code Pin
_Maxxx_17-Aug-11 19:57
professional_Maxxx_17-Aug-11 19:57 
GeneralRe: Need some Simple Code Pin
SledgeHammer0118-Aug-11 5:08
SledgeHammer0118-Aug-11 5:08 
GeneralRe: Need some Simple Code Pin
Glosse18-Aug-11 7:34
Glosse18-Aug-11 7:34 
GeneralRe: Need some Simple Code Pin
SledgeHammer0118-Aug-11 9:32
SledgeHammer0118-Aug-11 9:32 
GeneralRe: Need some Simple Code Pin
_Maxxx_18-Aug-11 13:41
professional_Maxxx_18-Aug-11 13:41 
Glosse wrote:
MVM seems to fly in the face of the KISS principle.


The MVVM principal is actually reasonably simple. The problem, I think, with peple's taking up of it is that it isn't something you can just become an expert in in a couple of days - you need to have the time to play with it and get to know your way around - and decide how YOU want to do it.
It took me a few months from first reading about it to actually having something I felt comfortable enough to use in the real world. I still don't use it enough to make is second nature (because i can't use it in my current day job) but if I was starting a new project, and could, I would certainly use it.


Glosse wrote:
MVM seems to fly in the face of the KISS principle.

There are a lot of articles out there showing people how to overcome difficulties using MVVM, or how to achieve something using MVVM that, I think, make it look far more complex than it is in fact.

many people misunderstand MVVM (the 'there must be not code behind' ers being a majority group!) Again, once you have been using it for a while, you start thinking about projects differently and it becomes 2nd nature.


Glosse wrote:
What are the benefits?

In my experience, especially as a consultant, the user is never, ever, happy with the project they receive. it can do all the clever things that they never even thought of, technically it can be doing something in milliseconds that other systems take many seconds to do, and can have a small memory footprint, be self updating and extensible - but the customer doesn't like that shade of green, would like the fonts bigger, hates check boxes and wants radio buttons, and so on.

Designed with MVVM, the presentation can be changed, leaving the functionality alone. The application still does just what it used to , but now looks different.

Indeed, with the right set up, you can display design time data, and sit with the user to show them as you develop, without writing code (or, at least, not much)


Glosse wrote:
In the middle ages wearing a hair shirt or self flagelation were thought to bring you closer to God.


I appreciate what you are saying - are the MVVM evangelists just that - evangelists who have faith and want to spread the word? Do they just 'believe'.

I can't speak for others, but my experience was to start with thinking "so what's so great about this MVVM thing" and start playing. I then went through the "well, this is crap, I can't even show a dialog box without thirty pages of code" stage. I nearly gave it up at that point, and had a few discussions with people (P. O'H being a great help) to get my head around what MVVM actually meant

I then went through the "looking at every framework" stage - and realised (again) that I hate frameworks because people try to make them do lots of stuff that then constrain me - so I went onto the "how should it really be" stage.

That's when I sat back and started work on my articles - not for CP but for me - putting stuff down in writing, having a toy application to start developing really helped me get my head around many aspects of MVVM, helped me develop my own version of a framework, that I could use simply elsewhere.

And, despite giving up and starting again many times whiole writing the articles, moving onto other projects (some using MVVM some not) I kept coming back to MVVM.

when working on non MVVM projects, I kept wishing it was MVVM as it would make things easier

So, it took me a lot of time and effort, and I've been programming for 35 years, so it was very much 'old dog, new tricks', but when I came out the end of the tunnel, I felt there was no going back.

To those at the other end of the tunnel, well, you're doing fine where you are, have fun and be happy. The tunnel is ling, often dark, and has some dead ends along the way, but if you do get through it, you'll see that there are no hairy shirts or self-whacking folks
MVVM# - See how I did MVVM my way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011

.\\axxx
(That's an 'M')

GeneralRe: Need some Simple Code Pin
Mycroft Holmes18-Aug-11 14:54
professionalMycroft Holmes18-Aug-11 14:54 
GeneralRe: Need some Simple Code Pin
_Maxxx_18-Aug-11 16:01
professional_Maxxx_18-Aug-11 16:01 
GeneralRe: Need some Simple Code Pin
SledgeHammer0118-Aug-11 18:47
SledgeHammer0118-Aug-11 18:47 
AnswerRe: Need some Simple Code Pin
Abhinav S19-Aug-11 1:47
Abhinav S19-Aug-11 1:47 
AnswerRe: Design and Styling Pin
SledgeHammer0115-Aug-11 6:47
SledgeHammer0115-Aug-11 6:47 
GeneralRe: Design and Styling Pin
Richard MacCutchan15-Aug-11 7:53
mveRichard MacCutchan15-Aug-11 7:53 
GeneralRe: Design and Styling Pin
SledgeHammer0115-Aug-11 8:04
SledgeHammer0115-Aug-11 8:04 
AnswerRe: Design and Styling Pin
Oludayo Alli15-Aug-11 23:09
Oludayo Alli15-Aug-11 23:09 
GeneralRe: Design and Styling Pin
Nicky Carpenter17-Aug-11 6:29
Nicky Carpenter17-Aug-11 6:29 
AnswerRe: Design and Styling [modified] Pin
Oludayo Alli19-Aug-11 3:42
Oludayo Alli19-Aug-11 3:42 
GeneralRe: Design and Styling Pin
AAC Mike16-Aug-11 3:01
AAC Mike16-Aug-11 3:01 
GeneralRe: Design and Styling Pin
SledgeHammer0116-Aug-11 5:09
SledgeHammer0116-Aug-11 5:09 
GeneralRe: Design and Styling Pin
Member 376360816-Aug-11 8:53
Member 376360816-Aug-11 8:53 
GeneralRe: Design and Styling Pin
SledgeHammer0116-Aug-11 10:11
SledgeHammer0116-Aug-11 10:11 
GeneralRe: Design and Styling Pin
Pete O'Hanlon16-Aug-11 10:21
mvePete O'Hanlon16-Aug-11 10:21 
GeneralRe: Design and Styling Pin
SledgeHammer0116-Aug-11 10:34
SledgeHammer0116-Aug-11 10:34 
GeneralRe: Design and Styling Pin
Pete O'Hanlon16-Aug-11 11:08
mvePete O'Hanlon16-Aug-11 11:08 

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.