I am a big proponent of method A.  My reasoning is that it cleanly
separates instance data from other data in the object.  I create a
debug() method in all my objects that return the instance struct, which
gives a very clean way to see what data is within an object.
Additionally you can use the instance data to implement the memento
design pattern.  This pattern allows you to easily store the state of an
object and return to an earlier state with a method like
MyObject.setMemento(instance) to populate the object with a stored
state.  Even if this functionality is not something I use all the time,
I like the flexibility it offers if the need ever arises.

My 2 cents.

My 2 cents.

Rich Kroll

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250507
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to