Login | Register
My pages Projects Community openCollabNet

Reply to message

* = Required fields
* Subject
* Body
Send reply to
Author (directly in email)
Please type the letters in the image above.

Original message

Author Pedram Nimreezi <zenstyle@gmail.com>
Full name Pedram Nimreezi <zenstyle@gmail.com>
Date 2007-10-05 10:53:38 PDT
Message > You mean the data retrieved simply encapsulated in objects? Say, like if
> you've got a customer table and Propel retrieves all the data for one
> customer, the resulting Customer object instance would be what you call
> a value object..?

Yes, it can also be called a Data Transfer Object... since it's an object, that
holds your data, abstracted as a class that can be transferred to receivers...
(which can be anything that's coded to play nice with it)

> oh and if you aren't sure just how EVIL eval() is, go benchmark it,
> anytime you run eval() it forks the php interpreter again over the
> code you eval() and the opcode cache cant do anything nice about
> this... eval() should be renamed evil()...

+1 ;), and not just because it's slow... it's also highly unsafe, it's akin to
giving your script access to run anything that can be possibly held in a string
which in (loosely typed) php can be almost anything... eval is a bad ju ju...

if you're not afraid of some hairy c code.. look up Vulcan Logic SRM... that has
a very unique way of keeping objects live, and active in memory...
written by the
same guy that makes xdebug (talk about credentials)... but at last
look it had bugs.
might give you some unique insight, in fact since some of the code is
(in that they're both a separate daemon with memory persistency) maybe memcache
extensions could be made to facilitate this... I may have to
investigate this further...

Oh btw, the AMF extension is stupid fast... it uses some linked list
buffering strategies
which may shed some more optimization enlightenment...

> On 10/5/07, Alexander Kahl <akahl at iconmobile dot com> wrote:
> > Hi Pedram :)
> >
> > On Thu, 2007-10-04 at 12:16 -0400, Pedram Nimreezi wrote:
> > > > Am I getting something
> > > > totally wrong here?
> > >
> > > Only slightly
> > Then I'll try to get the whole idea.

Pedram Nimreezi
Internet Developer / Frameworkologist
mc at majorcomputing dot com | pedram at 5g dot com
No man is a complete failure until he begins disliking men who succeed