Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Wich is the right way to MVC on LAzarus

8 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuseppe Luigi Punzi Ruiz

Hi all again.

I would like to know wich is the right way to follo MVC pattern and OOP on Lazarus/FreePascal.

Thanks in advance.

Reply by email

ik
to Giuseppe Luigi Punzi Ruiz: Hi all again. I would like to know wich is the right way to follo MVC pattern and OOP on…
Giuseppe Luigi Punzi Ruiz wrote
Hi all again. I would like to know wich is the right way to follo MVC pattern and OOP on Lazarus/FreePascal.

The easiest way for you to achieve your tasks imho :) MVC is not a religion but an approach. Personally I use it for many years and only recently learned the term. your data and logic need to be at two different locations, and the visual display have also a different location, however, if it makes things harder, then you can mix things up to make your work better and easier...

Thanks in advance.

Ido

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi Ruiz: Hi all again. I would like to know wich is the right way to follo MVC pattern and OOP on…
I would like to know which is the right way to follow MVC pattern and OOP on Lazarus/Free Pascal.

That's a very open ended question... MVC, MVP, MGM etc are all design patterns. They help to keep you business classes and GUI code separate.

I don't use MVC, but rather Model-GUI-Mediator (MGM). For me, it's more geared towards todays more intelligent GUI toolkits - taking advantage of it's built-in event handling. It's also very easy to implement. I have implemented MGM using Lazarus's LCL with tiOPF. I have also ported that implementation to fpGUI with tiOPF. Source code and examples are available for both in the following SubVersion repositories....

tiOPF v2: http://www.tiopf.com
fpGUI: http://opensoft.homeip.net/fpgui/

For more information about Model-GUI-Mediator have a look at: http://www.atug.com/andypatterns/mgm.htm

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Cesar Romero: I have a partial implementation of MVP that is FPC compatible, it is very close to MVC.…
Cesar Romero wrote 11 lines
Giuseppe Luigi Punzi Ruiz escreveu: > Hi all again. > > I would like to know wich is the right way to follo MVC pattern and > OOP on Lazarus/FreePascal. > I have a partial implementation of MVP that is FPC compatible, it is very close to MVC. Im now finishing a big refactory, not commited yet. http://code.google.com/p/jazz-sdk/

I think it would be good if you update your site somewhat.

From what I see, I would conclude that the project is dead...

Michael.

Reply by email