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 

MVP questions

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





PostPosted: Mon Apr 16, 2007 11:03 pm    Post subject: MVP questions Reply with quote



1. Is anyone besides Joanna using her MVP framework?
http://www.carterconsulting.org.uk/

Why or why not?
Any reason not, besides it is very involved?

2. Joanna, seemed like you were adjusting the framework
as you went in the articles. Is that because you were
trimming it down to be able to present it, or because
it wasn't a fully formed thought when you wrote it?

3. In Delphi, do you really add an interface to all
GUI components that you need to update?
Seems like that means wrapping almost every component
before we can use it.
Is there someone that has done this or are we all starting
from scratch?

4. What else have you had to add to the framework
since this writing several years ago?

Thanks,
Brad.
Back to top
Joao Morais
Guest





PostPosted: Mon Apr 16, 2007 11:39 pm    Post subject: Re: MVP questions Reply with quote



Brad White wrote:

Quote:
1. Is anyone besides Joanna using her MVP framework?
http://www.carterconsulting.org.uk/

Yes (or no?). I read the articles in order to understand the concept and
implemented my own classes.

Quote:
Why or why not?

Because I want:

- forms without code -- specially BO related;
- presentation rules that I can reuse;
- to configure forms using only one line per attribute;
- to create customized presentation classes without change the base
(inside the framework);
- port the code to another compiler (free pascal) and perhaps another
widgetset (eg msegui);
- another one that I probably forgot to describe here.

Quote:
Is there someone that has done this or are we all starting
from scratch?

Afaik the problem is that there aren't stable and open source projects
implemented in object pascal (let me know if I am wrong), /but/ you have
at least three pt-br projects under development. You can join to one of
them if you like how it is being implemented. One of them is PressObjects.

--
Joao Morais
Back to top
Joanna Carter [TeamB]
Guest





PostPosted: Mon Apr 16, 2007 11:51 pm    Post subject: Re: MVP questions Reply with quote



Brad White a écrit :

Quote:
1. Is anyone besides Joanna using her MVP framework?
http://www.carterconsulting.org.uk/

Brad, those articles were very early, almost blog like thoughts on what
I was doing at the time.

Quote:
2. Joanna, seemed like you were adjusting the framework
as you went in the articles. Is that because you were
trimming it down to be able to present it, or because
it wasn't a fully formed thought when you wrote it?

I never really got the framework fully developed for Delphi as my client
decided that it was far better to move to .NET 2.0 due to considerations
like generics, etc which have really helped to reduce our codebase.

Quote:
3. In Delphi, do you really add an interface to all
GUI components that you need to update?
Seems like that means wrapping almost every component
before we can use it.

Eventually, I found that the best way to cope with Delphi's lack of
object-aware controls was to create wrapper classes which implemented
IView and that took the UI control as a constructor parameter. The
wrapper class "translated" the Delphi control's declaration into what
the MVP required and it was to this wrapper class that the Interactor
was attached.

Quote:
Is there someone that has done this or are we all starting
from scratch?

The framework I now use has really changed due to .NET but still the
same elements of the MVP pattern have remained. Although, as I said in
another post today, I now don't create Presenters for the property
classes, mainly because I no longer need to use wrapper classes for the
UI controls as I did for Delphi for Win32.

Quote:
4. What else have you had to add to the framework
since this writing several years ago?

I don't think I have added anything; rather trimmed it down.

The greatest change has been the realisation that it is only possible to
create things like Interactors, the Selection and CommandSet as reusable
classes. Other parts like the Model and Presenter seem to end up being
more of a design pattern and the View ends up being more of a concept,
represented by a UI control, especially in .NET.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
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.