BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Model View Presenter session at BorCon

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Joanna Carter
Guest





PostPosted: Thu Oct 23, 2003 7:01 pm    Post subject: Model View Presenter session at BorCon Reply with quote



In addition to Bob Dawson's session about OPFs, I thought I would also try
for
a BoF session on Model View Presenter Frameworks.

If anyone who is going to BorCon has done anything with MVP, maybe we can
make it a panel session like the OPF one.

If you can't make it, then let me know if there are any questions you would
like to have discussed, providing we get a slot allocated.

Joanna

--
Joanna Carter
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker


Back to top
Brad White
Guest





PostPosted: Thu Oct 23, 2003 10:34 pm    Post subject: Re: Model View Presenter session at BorCon Reply with quote



"Joanna Carter" <joannac (AT) btinternet (DOT) com> wrote

Quote:
In addition to Bob Dawson's session about OPFs, I thought I would also try
for
a BoF session on Model View Presenter Frameworks.

If anyone who is going to BorCon has done anything with MVP, maybe we can
make it a panel session like the OPF one.

If you can't make it, then let me know if there are any questions you
would
like to have discussed, providing we get a slot allocated.

Joanna,


Yes, I'm very interested and I will be there.

IIUC, this is the same a MVC.
If that's not true, ignore the rest of this. 8:-)

What advantage does this pattern give me
over the "humble dialog" approach besides
being able to switch views and models.

Given YAGNI, and "Simple possible solution",
would you start right off with MVP?
Or would you just start with a model and a
view and only implement the controller if you
needed it later?

You obviously don't need to reply to this.
--
Thanks,
Brad White



Back to top
Joanna Carter
Guest





PostPosted: Thu Oct 23, 2003 10:53 pm    Post subject: Re: Model View Presenter session at BorCon Reply with quote



"Brad White" <bwhite at inebraska.com> a écrit dans le message de news:
3f98578a$1 (AT) newsgroups (DOT) borland.com...

Quote:
IIUC, this is the same a MVC.

Almost but not quite :-)

Quote:
What advantage does this pattern give me
over the "humble dialog" approach besides
being able to switch views and models.

MVP replaces the Controller with the Presenter but also adds extra
interfaces to help promote encapsulation, separation and reuse.

The Model holds a Selection and a Command Set which can be used as the
Subject for a Menu/Action chooser

The Presenter holds the Model and View and provides Interactors to mediate
between user gestures and the Model/Selection/Command Set.

Nesting MVPs, having an MVP for each attribute inside an MVP for an object
can completely remove all code from forms which become 'pure' views with no
logic at all. This allows other Views like web pages to use the same Model
and possibly Presenter by replacing the Interactors to respond to a CGI app
or similar instead of component events.

Quote:
Given YAGNI, and "Simple possible solution",
would you start right off with MVP?
Or would you just start with a model and a
view and only implement the controller if you
needed it later?

You always need a Presenter to hold the Interactors, otherwise you would
have nowhere to put your event handling code. For simple attributes you
could argue that you do not need a Selection because the selection is always
the whole attribute, but Command Sets can be used for
Cut/Copy/Paste/Undo/Redo/etc. even on a simple attribute.

Once you have written the basic framework to handle scalar types, I find
using the framework is simpler because there is so much power ready
built-in; things like character and value validation are automatically
called, as long as the Attribute knows how to handle such calls.

But I think that this discussion had better move to b.p.d.oodesign before we
get told off for being OT.

Joanna

--
Joanna Carter
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.