my (admittedly imperfect) understanding is that you should avoid chaining together method calls like object.method1().method2().method3()... etc because it couples your objects tightly leading to maintenance and testing hassles, and it shows too much of your implementation. In the example below, i know that getById() returns an object with a getName() function. If all i want is the name, i have no business knowing that.
 
no?


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kerry
Sent: Wednesday, June 29, 2005 7:26 PM
To: [email protected]
Subject: RE: [CFCDev] Redundant Evaluate - even here?

 
perhaps:
 
<cfvinvoke component="variables.item"
               method="getPlayer#y#Uuid"
               returnvariable="theuuid"> 
 
application.cfcPlayerHandler.getById(theuuid).getName()
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of John Samson
Sent: 29 June 2005 17:55
To: [email protected]
Subject: [CFCDev] Redundant Evaluate - even here?

application.cfcPlayerHandler.getById(evaluate("variables.item.getPlayer#y#Uuid()")).getName()
 


How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to