On Thu, 2007-03-08 at 08:36 -0500, Phillip Senn wrote: > Someone recently asked if passing the form scope was a best practice. > I found an interesting method called ArgumentCollection, but I don't > know very much about it. > > Q: If you have a ton of arguments, is using ArgumentCollection the best > practice? >
I think in general, you should strive to not have too many arguments in a method. But if you do, and they can all be related, it would be better to use a struct, in that case, as it helps break down the number of arguments and better organize them. As for using ArgumentCollection as a substitute for that, I think that would be valid, but others may disagree. > > You are subscribed to cfcdev. To unsubscribe, please follow the instructions > at http://www.cfczone.org/listserv.cfm > > CFCDev is supported by: > Katapult Media, Inc. > We are cool code geeks looking for fun projects to rock! > www.katapultmedia.com > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > > You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
