A gathering of coding standards done by Sean Corfield from the various
lists, faqs etc....

http://www.corfield.org/coldfusion/codingStandards.htm

I believe there are even some cfmx do's and don'ts in there too...

Stephen
----- Original Message -----
From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 11:17 AM
Subject: RE: Big "dummy" flags


> > here is a link to a little article, that may be of some use...
> > http://www.biztool.com/magazines/cf_devop/archives/0302/hewitt/
>
> Please note that some of this guy's comments are complete and utter
> rubbish
>
> 2 examples;
>
> <cfif status IS "Okay">
>  <cftransaction action="commit">
>  <cfquery...></cfquery></cfif></cftransaction>
>
> This is his example of some code - note that the <CFIF> and
> <CFTRANSACTION> are unbalanced - if that's meant to be a working
> example, welcome to JIT error time...
>
>
> Format data within your code, not your SQL data type.
> For example, imagine you have a field named "Price". Rather than
> specifying the datatype "money" in your SQL database, specify INT and
> use the ColdFusion function Dollar format(#Price#).
>
> What he's saying here is "If you want a money type, then don't worry
> about the pennies, the database will kill them for you" - using Int to
> store a money is just asking for trouble - unless you can GUARANTEE that
> you'll never need to store anything apart from whole dollars...
>
>
> If this is meant to be advice for new developers, then it includes bad
> advice
>
> Philip Arnold
> Technical Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> Switchboard: +44 (0)20 8680 8099
> Fax: +44 (0)20 8686 7911
>
> www.aspmedia.co.uk
> www.aspevents.net
>
> An ISO9001 registered company.
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
> > -----Original Message-----
> > From: Harkins,Patrick [mailto:HarkinPA@;MapleLeaf.ca]
> > Sent: 17 October 2002 19:36
> > To: CF-Community
> > Subject: RE: Big "dummy" flags
> >
> >
> >
> > Patrick
> >
> >
> > > -----Original Message-----
> > > From: Kevin Schmidt [mailto:schmidt@;hungrycow.com]
> > > Sent: Thursday, October 17, 2002 1:17 PM
> > > To: CF-Community
> > > Subject: Re: Big "dummy" flags
> > >
> > >
> > > Candace,
> > >
> > > I always wonder when I see pound signs where they aren't
> > > needed and don't
> > > belong.
> > >
> > > Kevin
> > >
> > > ----- Original Message -----
> > > From: "Candace Cottrell" <[EMAIL PROTECTED]>
> > > To: "CF-Community" <[EMAIL PROTECTED]>
> > > Sent: Thursday, October 17, 2002 11:48 AM
> > > Subject: Big "dummy" flags
> > >
> > >
> > > > As you all probably know, I am fairly new to CF.
> > > >
> > > > So, I have a client who wants to see a code sample. Are
> > > there any "what
> > > > a big dummy" flags in cf code that would cause the person
> > to cringe?
> > > >
> > > > TIA
> > > >
> > > > Candace K. Cottrell, Web Developer
> > > > The Children's Medical Center
> > > > One Children's Plaza
> > > > Dayton, OH 45404
> > > > 937-641-4293
> > > > http://www.childrensdayton.org
> > > >
> > > >
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_community
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to