<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - wtg - public - coding_standards - style.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T20:35:43</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47622" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47526" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#45517" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#37964" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29078" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29076" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#25879" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18891" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18884" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12861" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12850" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47622">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47622</link>
		<description>Wadem, a very fair point. I shall make sure the next revision of this page does show cfqueryparam.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2006-04-14T15:28:05</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47526">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#47526</link>
		<description>SeanCorfield that was a very easy point to make... there are no variable's so cfqueryparam is not required. That point taken do you not think it would be a good idea to add at least one example in the same section, that uses a param. So that if a complete CF novice was reading this page they would see right away `&lt;cfqueryparam` and think to them selves... what's that then? Why should I use them? I know its a coding standards doc, but it can't harm to point out something important that some people may not know about.</description>
		<dc:creator>Wadem</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-04-12T01:52:48</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#45517">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#45517</link>
		<description>Matt, if the SQL examples used variables, cfqueryparam would definitely be present.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2006-02-24T09:33:13</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#37964">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#37964</link>
		<description>Why isn't cfqueryparam shown in the SQL examples in the MX coding Guidelines?  You would think something so critical would be illustrated so that beginners and even intermediate developers would begin to be aware of its existence.</description>
		<dc:creator>MattRobertson</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-27T14:10:03</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29078">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29078</link>
		<description>The SQL coding guidelines come from our Oracle DBA team.&lt;br&gt;&lt;br&gt;We like the upper case SQL code because it makes it stand out on the page, distinct from the CFML that surrounds it.&lt;br&gt;&lt;br&gt;Also, some databases are case sensitive so using all upper case table / column names is actually safer (more portable). However, the most important thing is consistency. As it says on the opening page of these guidelines, you are free to take the document and change it for your own use.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-03-05T13:16:16</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29076">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#29076</link>
		<description>Really good read... a very nice set of standards so far.&lt;br /&gt;The only thing I would change, is the yucky all upper-case SQL &lt;br /&gt;statements. Why is that? Shouldn't database field names should be &lt;br /&gt;consistent with variables names used the rest of the application &lt;br /&gt;(headlessCamelCase)?&lt;br /&gt;&lt;br /&gt;The following example is never going to come through nice on the &lt;br /&gt;forum. So I'll try &lt;br /&gt;to describe it. The tabs form a nice solid line between the statements on &lt;br /&gt;the left and what data they are working with (all expect for order by, &lt;br /&gt;which is a tad too long and I'd rather not add another tab just for it). &lt;br /&gt;Keywords like on/and have a tab before and after, so they are separate &lt;br /&gt;from the main keywords. Keeping the &quot;and&quot; at the beginning of the same &lt;br /&gt;line as the expression makes it easy to comment out that one &quot;and&quot; &lt;br /&gt;when testing things.&lt;br /&gt;&lt;br /&gt;select	to1.columnOne, to1.columnThree,&lt;br /&gt;		tt1.columnTwo&lt;br /&gt;from	table_one to1&lt;br /&gt;join	table_two tt1&lt;br /&gt;	on	to1.tableOneId = tt1.tableTwoId&lt;br /&gt;where	tt1.tableTwoId = &lt;cfqueryparam &lt;br /&gt;cfsqltype=&quot;CF_SQL_INTEGER&quot; value=&quot;10&quot; /&gt;&lt;br /&gt;	and to1.columnOne = &lt;cfqueryparam &lt;br /&gt;cfsqltype=&quot;CF_SQL_VARCHAR&quot; maxlength=&quot;40&quot; value=&quot;AndIndented&quot; /&lt;br /&gt;&gt;&lt;br /&gt;order by to1.tableOneOrderKey</description>
		<dc:creator>nathany</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-05T10:47:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#25879">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#25879</link>
		<description>You can also add xml complience by simulated a cfif with a cfswitch like the xslt choose tag, although it is hard to simulate some cfelseif's without some clever coding.:&lt;br /&gt;&lt;br /&gt;&lt;cfscript&gt;&lt;br /&gt;	i = 10;&lt;br /&gt;&lt;/cfscript&gt;&lt;br /&gt;&lt;!--- This is a simulation of a cfif/cfelse ---&gt;&lt;br /&gt;&lt;cfswitch expression=&quot;#evaluate('i gt 3')#&quot;&gt;&lt;br /&gt;	&lt;cfcase value=&quot;true&quot;&gt;&lt;br /&gt;		&lt;cfoutput&gt;Yes, #i# is greater than 3&lt;/cfoutput&gt;&lt;br /&gt;	&lt;/cfcase&gt;&lt;br /&gt;	&lt;cfdefaultcase&gt;&lt;br /&gt;		&lt;cfoutput&gt;This is the else equivilent&lt;/cfoutput&gt;&lt;br /&gt;	&lt;/cfdefaultcase&gt;&lt;br /&gt;&lt;/cfswitch&gt;</description>
		<dc:creator>eric.moritz</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-27T07:40:04</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18891">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18891</link>
		<description>The non-compliance of code generated by CFFORM is a known issue that will be addressed in a future release.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-07-22T10:14:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18884">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#18884</link>
		<description>Concerning the HTML &amp; XHTML Compliance section:  Some ColdFusion tags force non-compliance to this standard.  Use of CFFORM in conjunction with any CFFORM control creates ugly, uppercase, non-terminated form controls.  The only choices you have is to not write XHTML or not use CFFORM.&lt;br /&gt;&lt;br /&gt;This should be addressed in a bug fix or new version of CF anyways.  Otherwise, why even provide the CFFORM tag at all.</description>
		<dc:creator>JButter</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-22T05:57:24</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12861">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12861</link>
		<description>Yes, by the time the page reaches the browser, the ColdFusion tags have been processed and are no longer part of the document.&lt;br&gt;This guideline is merely about visual consistency within a source page: rather than have some tags be closed XHTML-style and some tags not, it is easier on the eye - and more consistent - to close all tags XHTML-style, regardless of whether they are HTML or ColdFusion.&lt;br&gt;Furthermore, if you get into the habit of closing all tags XHTML-style, you are more likely to write XHTML-compliant HTML.&lt;br&gt;The same logic is what drives the recommendation to have lowercase ColdFusion tags (to match lowercase HTML tags, required by XHTML). The lowercase tags do not contribute to XHTML-compliance but they provide a most consistent visual style and, in my opinion, make code easier to read.</description>
		<dc:creator>SeanCorfield</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-04-13T11:03:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12850">
		<title>wtg/public/coding_standards/style.html</title>
		<link>http://livedocs.adobe.com/wtg/public/coding_standards/style.html#12850</link>
		<description>It may just be me, but isn't ColdFusion script processed out of the page before being sent to the Web server and subsequently, the client's browser? And if that is the case, why would you have to make your ColdFusion code XHTML compliant? After all, once the CF server processes out the CF code, if applicable, it will be replaced by html and the CF code won't be there anymore! I would appreciate any understanding you would be willing to pass along.</description>
		<dc:creator>ednagel</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-13T04:36:01</dc:date>
	</item>
	</rdf:RDF>

