Search the web
Sign In
New User? Sign Up
domaindrivendesign · Domain-Driven Design
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The M is MVC or MVP _IS_ or _IS NOT_ a Domain Model Object   Message List  
Reply | Forward Message #9176 of 16097 |
Bouncing out of the inappropriate hijacking of the "Overuse and
Resulting Backlash" thread..

I was referring primarily to MVP, and specifically Passive-View:
http://martinfowler.com/eaaDev/PassiveScreen.html

In every application instance, the M in MVP (or MVC) IS the M in
Domain Model. In system software instances, the M might be a button,
etc, and in that case, the Domain is GUI and a fairly restricted usage
IMHO -- unless you are developing UI software.

After many years of object-oriented analysis, design and programming,
pattern aware development and more recently, DDD, I find the simplest
patterns are the most effective and useful.

I understand and used to revel in complexity; now I eschew it.

"Do the simplest thing that could possibly work" is a mantra I live
by, and to me, Vibhu's description of Smalltalk's MVC, and Ralph
Johnson's discussion on C2.com illustrate exactly why I favour
MVP/Passive-View instead.




Mon Dec 15, 2008 3:04 am

agilista
Offline Offline
Send Email Send Email

Forward
Message #9176 of 16097 |
Expand Messages Author Sort by Date

Bouncing out of the inappropriate hijacking of the "Overuse and Resulting Backlash" thread.. I was referring primarily to MVP, and specifically Passive-View: ...
agilista
Offline Send Email
Dec 15, 2008
3:04 am

I heavily prefer "IS NOT", as I don't want UI concerns leaking down into my domain layer. Form model objects, DTOs, or whatever you want to call them, often...
Jimmy Bogard
jimmy.bogard
Offline Send Email
Dec 15, 2008
3:20 am

... Yeah thats what I'm coming round to now too especially with MVC and because you can generate large amounts of the basic view model classes from the domain...
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
10:09 am

I think IS is definitely right, but IS_NOT may be right too depending on whether you are looking at a control or an entire application, and also depending on...
Kurt Häusler
kurt.haeusler
Offline Send Email
Dec 15, 2008
8:10 am

It depends on whether you consider MVC a UI pattern (where the M is a layer that communicates with the "real" application), or you consider MVC an ...
Casey Charlton
caseycharlton69
Offline Send Email
Dec 15, 2008
8:17 am

... To me thinking of M as everything behind the GUI is a good approach, however saying that the M *is* the domain model is very different and to me less...
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
10:06 am

Indeed - I don;t think it would be possible to havethe M represent the domain model - the app servies also live in the M, so do specifications, etc... as the C...
Casey Charlton
caseycharlton69
Offline Send Email
Dec 15, 2008
10:29 am

Trygve Reenskaug is the father of MVC, and wrote the first publication about it in 1979 while working with the Smalltalk group at Xerox PARC. If you look at...
Randy Stafford
randalparker...
Offline Send Email
Dec 15, 2008
3:28 pm

... Superb as always, and you now have a forum entry to copy content from for the associated entry in the FAQ :)...
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
4:37 pm

... Colin Totally agree with you and I'm glad there is such discussion here about the Model in the Presentation because I was too lazy not to answer your email...
daneel3001
Offline Send Email
Dec 16, 2008
9:16 pm

... No-one is as lazy as me with e-mails, friends who e-mail learn to expect to wait at least 3 months for a reply :)...
Colin Jack
colin.jack
Offline Send Email
Dec 17, 2008
8:59 am

Talking about MVC, do you always abstract the MVC into suitable interfaces or abstract classes, so my application doesn't stick to one MVC framework (like...
Dicky Arinal
dicky.arinal
Offline Send Email
Dec 17, 2008
5:34 pm

... Presentation model is one approach: http://martinfowler.com/eaaDev/PresentationModel.html...
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
10:04 am

Hi, From my point of view is that MVC is very "old" pattern and what is for sure is that the pattern has had its evolution in time depending on demands and...
arturtv
Offline Send Email
Dec 15, 2008
8:33 am

Design of a system using a modelling approach will result into many small models. If there is a user interface in consideration, the design will most likely...
rishikesh parkhe
rishiparkhe
Offline Send Email
Dec 15, 2008
8:52 am

... usage ... Don't agree on this, its a model but not necessarily just the domain model....
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
10:02 am

Hello, To me the M in MVC/P represents (in an abstract sense) what the View requires to render. This may be a very specific presentation model or something as...
Eben Roux
eben_roux
Offline Send Email
Dec 15, 2008
11:07 am

What I understand from M in MVC/P is the UI model. Its behavior is based on UI actions, and translated into Domain usually via application services or an anti...
Sidar Ok
oksidar
Offline Send Email
Dec 15, 2008
11:25 am

... Yup that makes perfect sense and is my view on it too....
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
11:50 am

The M can also take actions and initiate things that have no relation to the UI 2008/12/15 Colin Jack <colinjack@...>...
Casey Charlton
caseycharlton69
Offline Send Email
Dec 15, 2008
11:58 am

... Do you have an example, I've tended to keep my view or presentation model *relatively* GUI focussed and keep most of the behavior in the controller or...
Colin Jack
colin.jack
Offline Send Email
Dec 15, 2008
12:37 pm

User clicks "Send Email" ... M gets a DTO with email, M deals with it, sends it, UI never renders anything from the M ... the controller will decide to change...
Casey Charlton
caseycharlton69
Offline Send Email
Dec 15, 2008
12:45 pm

I haven't read the other threads on this because there were too many, but here is my opinion anyway :-) In the app I am currently writing we have Database ...
Peter Morris
mrpmorris
Offline Send Email
Dec 15, 2008
5:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help