Mega Search
23.2 Million


Sign Up

Make a donation  
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign

> {quote:title=John Treder wrote:}{quote}
> 
> Well, I decided to bellyflop into that ocean, and I'm dog-paddling around, and I seem to get that the general idea is to separate UI elements, storage elements, and "business" elements.

I don't think there is any storage concerns in MVC. Here's a good article to read:

http://en.wikipedia.org/wiki/Model-view-controller

> But there does seem to be a lot of "glue" code involved in getting standard Dephi Ui components, home-brewed "business" classes, and a mixture of SQL database components  and .INI files to chat comfortably with one another.

Yep, stacks of glue bottles on your workspace.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 14-Sep-2012, at 1:04 PM EST
From: > Rich
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Edmund Wong wrote:}{quote}
> Joanna Carter (Team OOAD)  > Le 10/09/12 21:23, Rich _ a écrit :
> >
> Joanna!  You're back!  Woot!
> 
> >> So, what you're saying is Delphi is so powerful you don't even need
> >> to test it? You're confident that what you can do in other tools can
> >> easily be done in Delphi.
> >
> > It doesn't take a particularly powerful language to develop an MVC
> > framework.
> >
> 
> But, I must add, it takes (for lack of a better word) talent to
> understand the MVC framework.  (I really don't know how this
> is coming across in written form.)
> 
> Edmund

Do a Google search for "delphi mgm".
One of the first should be a pdf by Greame Geldenhuys. Read that, it is about the only useful documentation (relating to Delphi) I've seen in this subject area.

That then leads on to tiOpf but I've not had the time to get that far. And what is covered in article may be enough for me. Once I've had time to study that properly.

Sion.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Sep-2012, at 5:06 AM EST
From: Sion Jones
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Joanna Carter (Team OOAD) wrote:}{quote}
> 
> If I can create an MVP framework that works at both design-time and 
> run-time, using C#, I see no reason why it would not work in Delphi.

I was thinking more of doing MVC visually with Delphi. Are you viewing MVP as being closer to the Delphi approach?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 3:35 PM EST
From: > Rich
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
Le 10/09/12 20:35, Rich _ a écrit :

> I was thinking more of doing MVC visually with Delphi. Are you
> viewing MVP as being closer to the Delphi approach?

MVP is simply a finer grained version of MVC.

In theory, MVC is simpler in concept but can lead to more complicated 
code in the Controller class.

Both are equally possible in Delphi: given that you would have to create 
any necessary components and their designers.

Joanna

-- 
Joanna Carter [Team OOAD]

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 3:40 PM EST
From: Joanna Carter (Team OOAD)
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Joanna Carter (Team OOAD) wrote:}{quote}
> 
> Both are equally possible in Delphi: given that you would have to create 
> any necessary components and their designers.

I'm liking the idea. It sounds fun.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 3:52 PM EST
From: > Rich
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Gilbert Padilla wrote:}{quote}
> > Both are equally possible in Delphi: given that you would have to create
> > any necessary components and their designers.
> >
> 
> Could livebinding be part of a Visual MVC?

Yes. I already do a half-baked MVC visually with Delphi. I've labeled it Delphi-MVC.

Joanna is an xtreme typist so she's good for an MVC/MVP discussion.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 3:58 PM EST
From: > Rich
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
Le 10/09/12 20:54, Gilbert Padilla a écrit :

> Could livebinding be part of a Visual MVC?

My experience is that of using .NET bindings within the Interactors of MVP.

In theory, MVC would not use bindings since the Controller encompasses 
mediating a UI to a whole object rather than separating out the 
interaction of individual properties to controls, as in MVP.

Joanna

-- 
Joanna Carter [Team OOAD]

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 4:03 PM EST
From: Joanna Carter (Team OOAD)
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Joanna Carter (Team OOAD) wrote:}{quote}
> 
> In theory, MVC would not use bindings since the Controller encompasses 
> mediating a UI to a whole object rather than separating out the 
> interaction of individual properties to controls, as in MVP.

So, you're saying a live binding to a whole object wouldn't be allowed under MVC?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 4:09 PM EST
From: > Rich
 
Re: Visual MVC in Delphi?  
News Group: embarcadero.public.delphi.oodesign
Le 10/09/12 21:09, Rich _ a écrit :

> So, you're saying a live binding to a whole object wouldn't be allowed under MVC?

Not necessarily not allowed but hard to imagine.

Joanna

-- 
Joanna Carter [Team OOAD]

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 4:15 PM EST
From: Joanna Carter (Team OOAD)
 
Re: Visual MVC in Delphi? [Edit]  
News Group: embarcadero.public.delphi.oodesign
> {quote:title=Joanna Carter (Team OOAD) wrote:}{quote}
> 

So, your answer to my question is YES!

Cool.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Sep-2012, at 6:44 PM EST
From: > Rich