Thanks Doug and Spike. These are the things I needed. Feel free to send more if you know of them! :)
nolan -----Original Message----- From: Spike [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 9:55 AM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] var scoping in CFC methods - examples of why Write a simple CFC that has 2 methods. Put an indexed loop in both the methods with "i" as the index variable. Call the first method from inside the loop of the second. As long as you can think of a half decent use case where you might want to do this it shouldn't take too long before he realizes that <cfset var i = ""> is kinda important if you want the code to work. >From there it's a natural extension to places where you may have the same query name in 2 methods. Can't think of any specific resources off the top of my head, but I'm guessing that the web technology group coding guidelines will probably have something. HTH Spike -------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Nolan Erck >Sent: Tuesday, September 14, 2004 9:44 AM >To: [EMAIL PROTECTED] >Subject: [CFCDev] var scoping in CFC methods - examples of why > >I have a programmer on my team that's new to CFCs, but won't >admit it. When he writes methods in CFCs I'm using, I'll >often see unscoped variables. While I'm debugging something, >if I'm in one of his files, I'll often "var" the variables, >which irritates this guy (he's very "why are you touching MY >code?!" about it). > >Basically, I'd like to get URLs of various blogs,, articles, >MM on-line docs, and whatever else I can forward to the guy >showing him why all local variables should be in the "var" >scope, and giving examples of the bad things that can happen otherwise. > >I'm having a devil of a time finding things in the archives >that are very useful. If you have links or whatever that >would help back up this point, would you mind sending them >over to me (off-list)? I know this has been discussed here >before but searching the archive for "var" isn't very efficient. :) > >Thanks, >Nolan > >---------------------------------------------------------- >You are subscribed to cfcdev. To unsubscribe, send an email >to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' >in the message of the email. > >CFCDev is run by CFCZone (www.cfczone.org) and supported >by Mindtool, Corporation (www.mindtool.com). > >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' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). 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' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
