Barney,
That's why I pass a fieldlist argument in. If "numberOfGrandchildren"
isn't in the fieldlist then I don't calculate it.
Does that not cover that case?
Steve
On 1/7/2011 8:38 PM, Barney Boisvert wrote:
By front-computing all those values, you're necessarily doing a LOT of
extra work to build up data that isn't needed universally. A dataDiff
for age is simple, but what if it's numberOfGrandchildren (which is
guaranteed to require database access to answer). Using a method for
lazy loading the data can be a HUGE performance boon, as well as
moving a huge amount of entity-specific logic into the entity (rather
than in external components divorced from the entity itself).
But like you said to Peter, I think we have to agree to disagree on this. :)
cheers,
barneyb
--
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en.