Re: question about cfproperty
Interesting observation. Prolly cuz most code gens are just abstracting the database and unless you are exposing it as a web service there is really not much point. On the other hand, if I have a cfc that is not part of my DB abstraction layer or handles some other utility/function I tend to use cfproperty to document it.. G! On Sun, Feb 15, 2009 at 7:14 PM, Mike Soultanian wrote: > > Brad Wood wrote: > > On the topic of cfproperty-- don't write them off completely. :) > > > > They look like they will play a big part in CF 9's ORM features. > > Additionally, some frameworks like ColdBox use cfproperty tags' metadatato > > autowire dependencies into your components. > > I just found it interesting that code generators like rooibos don't > write them in. Wouldn't seem like it would be much more work to put it > in there, but it doesn't... was kinda curious why they didn't. > > Mike > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: question about cfproperty
Brad Wood wrote: > On the topic of cfproperty-- don't write them off completely. :) > > They look like they will play a big part in CF 9's ORM features. > Additionally, some frameworks like ColdBox use cfproperty tags' metadata to > autowire dependencies into your components. I just found it interesting that code generators like rooibos don't write them in. Wouldn't seem like it would be much more work to put it in there, but it doesn't... was kinda curious why they didn't. Mike ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319359 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: question about cfproperty
On the topic of cfproperty-- don't write them off completely. :) They look like they will play a big part in CF 9's ORM features. Additionally, some frameworks like ColdBox use cfproperty tags' metadata to autowire dependencies into your components. Just food for thought. :) ~Brad - Original Message - From: "Mike Soultanian" To: "cf-talk" Sent: Sunday, February 15, 2009 12:16 PM Subject: Re: question about cfproperty > > Dave Watts wrote: >> CFPROPERTY is really only useful for web services. For most CFCs, you >> don't want to document properties because those properties aren't >> public; the use of public properties breaks the concept of >> encapsulation. > > Ahhh... cool. Thanks for the info! > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: question about cfproperty
Dave Watts wrote: > CFPROPERTY is really only useful for web services. For most CFCs, you > don't want to document properties because those properties aren't > public; the use of public properties breaks the concept of > encapsulation. Ahhh... cool. Thanks for the info! Mike ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319350 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: question about cfproperty
> Does anyone use cfproperty? I've been doing a lot of reading on CFCs > and I've noticed that nobody uses that tag to document their CFCs. Is > it just easy enough to look at the init's arguments to figure out the > properties for a class? Just curious.. CFPROPERTY is really only useful for web services. For most CFCs, you don't want to document properties because those properties aren't public; the use of public properties breaks the concept of encapsulation. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319347 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: question about cfproperty
IIRC... It is for self documentation and for constructing the WSDL for web services. You can skip it entirely for a regular CFC as it has no effect on the the functionality of the CFC. G! On Sat, Feb 14, 2009 at 9:59 PM, Mike Soultanian wrote: > > Does anyone use cfproperty? I've been doing a lot of reading on CFCs > and I've noticed that nobody uses that tag to document their CFCs. Is > it just easy enough to look at the init's arguments to figure out the > properties for a class? Just curious.. > > Thanks! > Mike > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319333 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
question about cfproperty
Does anyone use cfproperty? I've been doing a lot of reading on CFCs and I've noticed that nobody uses that tag to document their CFCs. Is it just easy enough to look at the init's arguments to figure out the properties for a class? Just curious.. Thanks! Mike ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319330 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4