On Sat, 25 Dec 2004 21:29:41 -0600, Jared Rypka-Hauer - CMG, LLC
<[EMAIL PROTECTED]> wrote:
> In my first CFC-based app, I made the HUGE mistake of nesting
> instances inside arrays inside of instances inside arrays...

Right, that's a typical - and understandable - mistake that folks new
to CFCs tend to make. Too many objects. Don't worry, it takes time to
find the right balance.

> BUT, whenver I get data on a user, a company, etc., I'm abiding by Ben
> Forta's use of the this scope in both the CFWACK and the Advanced book
> by using the THIS scope to contain cf-accessible values.

Unfortunately Ben's book was written for CFMX 6.0 and was not updated
for CFMX 6.1. CFMX 6.0 had a bug that prevented "variables" scope from
being used in CFCs. Hal Helm's "Discovering CFCs" suffers from the
same problem. They both contain a lot of code that is terrible bad
practice based on a fundamental bug in CFMX 6.0.

> And, for that matter, do the proponents of the encapsulation
> methodology propose a round-trip to the DB for each value, or do they
> propose a collection of private instance data to be delivered to the
> screen by a special method?

DAOs, Gateways and other design patterns address this issue.
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 6 invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188794
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to