Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Light Weight Classes

propel
Discussion topic

Back to topic list

Light Weight Classes

Reply

Author Art Hundiak <dev at zayso dot org>
Full name Art Hundiak <dev at zayso dot org>
Date 2006-03-28 12:26:41 PST
Message Been reading the recent road map threads with interest. Glad to see the
topic of light weight classes has come up. I always cringe a bit when
browsing through the generated peer/model code and have to keep repeating
"premature optimization is bad".

In any event, most of you are probably aware of the latest buzz framework
known as the "Zend Framework" (http://framework.zend.com/). It's
basically Zend's attempt to bring more php programmers into the oop/mvc
world.

They have a gateway class called Db/Table which basically acts as a simple
Propel Peer class. It queries the database itself to get the table
schema. And then they have a related row class for individual rows.

It seems to me that we might be able to define a few interfaces and have
the new propel light weight classes match the zend framework classes. By
using interfaces we avoid a direct dependency between Zend and Propel
while still allowing the generated classes to be used interchangeable.

By using Zend as a guide we avoid the need to design our own
specification. The propel classes would probably be a bit faster since
they wouldn't have to query the database for schema information. And
developers would have the option of switching over to the full blown
propel classes when needed which in turn might make propel more widely
used.

And this might also be a good way to see how difficult it would be to move
runtime propel over to a pdo based system. Again we steal Zend's design
and see if can be plugged into propel.

I'm willing to do more research on this if anyone thinks it's a worth
while endeavor.

« Previous message in topic | 1 of 12 | Next message in topic »

Messages

Show all messages in topic

Light Weight Classes Art Hundiak <dev at zayso dot org> Art Hundiak <dev at zayso dot org> 2006-03-28 12:26:41 PST
     Re: [propel-dev] Light Weight Classes Markus Wolff <wolff at 21st dot de> Markus Wolff <wolff at 21st dot de> 2006-03-28 12:52:36 PST
         Re: [propel-dev] Light Weight Classes "Pedram N dot " <zenstyle at gmail dot com> "Pedram N dot " <zenstyle at gmail dot com> 2006-03-28 13:34:33 PST
             Re: [propel-dev] Light Weight Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 16:24:16 PST
         Re: [propel-dev] Light Weight Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 16:22:25 PST
             Re: [propel-dev] Light Weight Classes Alan Pinstein <apinstein at mac dot com> Alan Pinstein <apinstein at mac dot com> 2006-03-28 21:23:50 PST
                 Re: [propel-dev] Light Weight Classes "Pedram N dot " <zenstyle at gmail dot com> "Pedram N dot " <zenstyle at gmail dot com> 2006-03-28 22:05:08 PST
                     Re: [propel-dev] Light Weight Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-29 04:10:53 PST
                         Re: [propel-dev] Light Weight Classes "Pedram N dot " <zenstyle at gmail dot com> "Pedram N dot " <zenstyle at gmail dot com> 2006-03-29 07:15:58 PST
     Re: [propel-dev] Light Weight Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-28 16:00:44 PST
         Re: [propel-dev] Light Weight Classes Art Hundiak <dev at zayso dot org> Art Hundiak <dev at zayso dot org> 2006-03-28 17:19:01 PST
             Re: [propel-dev] Light Weight Classes =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-03-29 03:28:07 PST
Messages per page: