I recently started a position as a technical lead at a new company. Most of the development is done on a few intranet/extranet sites, so the code (much of it spaghetti) is touched by a lot of different developers.
I've recently set up a wiki that contains coding standards, and used a lot of the LiveDocs recommendations (with a "References" section indicating sources). I've gone the route of placing these standards under some general categories, such as "Security", "Performance", and "Stylistic". The "Stylistic" category defines things such as capitalization and indentation. It may have been a bad idea, but with this category, we came to a lot of these standards based on the consensus of the group - most of whom maintain the coding style of the CFWACK, e.g., title casing function names, uppercasing CF operators, etc. Wondering if any of you would think it is beneficial (or too draconian) to have these "stylistic" standards in place, even if it isn't an individual's preference, to promote readability, consistency and prevent constant reformatting (annoying when doing diffs), especially in an environment where different developers are touching a lot of the same code? On 10/7/07, ColdFusion <[EMAIL PROTECTED]> wrote: > > Thanks, I will make note of that. > > -----Original Message----- > From: Adrian Moreno [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 07, 2007 2:28 AM > To: CF-Talk > Subject: Re: CF Coding Standards > > >I recall a benchmark results from along time ago indicating that if > >your doing more than 3 CFIF/CFELSEIF statements it was better for > >performance to use CFSWITCH. That was discussed here on the mailing list > of > HoF. > > > http://webapper.net/index.cfm?fuseaction=Fuseblog.ShowComments&ArticleID=200 > 60727042244 > > Comparing cfswitch/cfcase vs. cfif/cfelse: They found that when comparing > string values, if/else is much faster then switch/case under load. When > comparing numeric values, switch/case is faster. > > -- Adrian > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290485 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

