I assume the GNOME scope is only used for really short variables, yes?
(sorry, I just couldn't resist) :) -- Cheers! Michael David ------ Original Message ------ From: "Stephens, Larry V" <steph...@iu.edu> To: "cf-talk" <cf-talk@houseoffusion.com> Sent: 6/21/2012 9:26:48 AM Subject: RE: Best practices >And, IMO, there's a point too often overlooked: commenting and style (as in >indenting code and naming stuff). > >I've sometimes been weak about comments in my code - but I'm trying to do >better. I have trouble remembering what I was trying to do when I revisit code >after a few months, let alone looking at someone else's code. And while I'll >buy that some code is self-documenting I don't buy that on a much grander >scale than a half-dozen lines or so. > >I am insistent that and code written for my department be properly indented >and that includes javascript (and I don't mean online libraries). I'm willing >to give up the fractional difference in load or execution time for code I can >decipher without developing ulcers. > >I recently had to help with some code with really outlandish variable and >field names. > <cfset mawkishbbt = GNOME.barakish> (not really, but a good paraphrase) > >Name stuff so the next person that looks at the code has a clue what you're >doing. > > > >-----Original Message----- >From: Maureen [mailto: >mamamaur...@gmail.com >] >Sent: Wednesday, June 20, 2012 6:18 PM >To: cf-talk >Subject: Re: Best practices > > >If I wrap a large amount of code in cfoutput tags, I always comment the >starting and ending tags to describe what they wrap. It makes it easier to >match them when debugging. > >On Wed, Jun 20, 2012 at 3:05 PM, Rob Voyle < >robvo...@voyle.com >> wrote: > >> >> >>Hi folks >> >>Thanks for the input and help. >>I had not been thinking in terms of speed but of accuracy, which >>doesn't seem to be an issue. The page isn't that big that speed is >>going to be a problem. It is actually much easier to code without the >><output> as I have several paragraphs with variable scattered throughout. >> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm