How to find out which methods are in use?
I have quite a lot of CFCs now on some of my sites, since I'm using OO techniques nearly exclusively nowdays. One of the problems I've discovered as I tinker around with methods is that every once in a while I'll change a method, only to find there is an unexpected consequence somewhere else, because the method I'm tinkering with is used somewhere on the site I've overlooked. Obviously every time a method is changed in any way, all the parts of the site that access that method need to be tested again, but making sure they're all tested is proving more and more tricky as the sites get bigger and more complex, or as time goes by and i forget how everything was hooked together. The only way i have found to discover where a particular method is used is to use a global text search over the site for the text methodname( and hope that shows up all references to the method. Is this how the rest of you do this? or is there another way to do it? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| 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:251340 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How to find out which methods are in use?
Mike - unit tests protect you against exactly this sort of thing. There isn't really any other option or shortcut. On 8/29/06, Mike Kear [EMAIL PROTECTED] wrote: I have quite a lot of CFCs now on some of my sites, since I'm using OO techniques nearly exclusively nowdays. One of the problems I've discovered as I tinker around with methods is that every once in a while I'll change a method, only to find there is an unexpected consequence somewhere else, because the method I'm tinkering with is used somewhere on the site I've overlooked. Obviously every time a method is changed in any way, all the parts of the site that access that method need to be tested again, but making sure they're all tested is proving more and more tricky as the sites get bigger and more complex, or as time goes by and i forget how everything was hooked together. The only way i have found to discover where a particular method is used is to use a global text search over the site for the text methodname( and hope that shows up all references to the method. Is this how the rest of you do this? or is there another way to do it? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| 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:251344 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: How to find out which methods are in use?
You might need to look into unit testing, with something like CFUnit. On 8/29/06, Mike Kear [EMAIL PROTECTED] wrote: I have quite a lot of CFCs now on some of my sites, since I'm using OO techniques nearly exclusively nowdays. One of the problems I've discovered as I tinker around with methods is that every once in a while I'll change a method, only to find there is an unexpected consequence somewhere else, because the method I'm tinkering with is used somewhere on the site I've overlooked. Obviously every time a method is changed in any way, all the parts of the site that access that method need to be tested again, but making sure they're all tested is proving more and more tricky as the sites get bigger and more complex, or as time goes by and i forget how everything was hooked together. The only way i have found to discover where a particular method is used is to use a global text search over the site for the text methodname( and hope that shows up all references to the method. Is this how the rest of you do this? or is there another way to do it? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| 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:251346 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How to find out which methods are in use?
documentation. On 8/29/06, James Holmes [EMAIL PROTECTED] wrote: You might need to look into unit testing, with something like CFUnit. On 8/29/06, Mike Kear [EMAIL PROTECTED] wrote: I have quite a lot of CFCs now on some of my sites, since I'm using OO techniques nearly exclusively nowdays. One of the problems I've discovered as I tinker around with methods is that every once in a while I'll change a method, only to find there is an unexpected consequence somewhere else, because the method I'm tinkering with is used somewhere on the site I've overlooked. Obviously every time a method is changed in any way, all the parts of the site that access that method need to be tested again, but making sure they're all tested is proving more and more tricky as the sites get bigger and more complex, or as time goes by and i forget how everything was hooked together. The only way i have found to discover where a particular method is used is to use a global text search over the site for the text methodname( and hope that shows up all references to the method. Is this how the rest of you do this? or is there another way to do it? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| 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:251347 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How to find out which methods are in use?
Yes, good documentation also helps. This also reminded me of another tactic to use in conjunction with the others; you could use Coldspring to explicitly state the relationships between these CFCs so you don't get caught out so easily: http://www.coldspringframework.org/ On 8/29/06, Neil Middleton [EMAIL PROTECTED] wrote: documentation. On 8/29/06, James Holmes [EMAIL PROTECTED] wrote: You might need to look into unit testing, with something like CFUnit. On 8/29/06, Mike Kear [EMAIL PROTECTED] wrote: I have quite a lot of CFCs now on some of my sites, since I'm using OO techniques nearly exclusively nowdays. One of the problems I've discovered as I tinker around with methods is that every once in a while I'll change a method, only to find there is an unexpected consequence somewhere else, because the method I'm tinkering with is used somewhere on the site I've overlooked. Obviously every time a method is changed in any way, all the parts of the site that access that method need to be tested again, but making sure they're all tested is proving more and more tricky as the sites get bigger and more complex, or as time goes by and i forget how everything was hooked together. The only way i have found to discover where a particular method is used is to use a global text search over the site for the text methodname( and hope that shows up all references to the method. Is this how the rest of you do this? or is there another way to do it? -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:251349 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4