Ben Nadel Presentation About ClearCode Standards Projects For Chennai CFUG and Hyderabad CFUG, India
Yesterday, Ben Nadel gave a great connect presentation to both Chennai and Hyderabad ColdFusion User Groups about his ClearCode standards project. The presentation was excellent that guides on how it is valuable to create and deliver application with better coding standards and conventions in ColdFusion. He clearly explained about the Code readability, alignment, Spaces between values, assignment statements, functions and scope variables case and standards.
I want thanking Ben Nadel for his presentation and also would like to thank Clark Valberg and Ayub Khan for this event a massive success for India CFUG.
Some examples From Ben Nadel’s coding standards:
ColdFusion Code:
<cfloop
index="intFileIndex"
from="1"
to="#REQUEST.FileCount#"
step="1">
<label for="file#intFileIndex#">
File #intFileIndex#:
</label>
<input
type="file"
name="file#intFileIndex#"
id="file#intFileIndex#"
/>
<br />
</cfloop>
SQL Statements:
INSERT INTO user
(
first_name,
last_name
)
VALUES
(
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.first_name#" />,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.last_name#" />
)
CSS Rules:
<style type="text/css">
body {
color: #262626 ;
font-family: verdana, arial, georgia ;
font-size: 62.5% ;
}
h1,
h2,
h3,
h4,
h5,
form,
table,
p,
ul,
ol {
margin-bottom: 1.8em ;
margin-top: 0px ;
}
Ben Coding Methodology Links:
My Coding Methodology - Understanding The Madness And The Man Behind It.
Ben Nadel’s Easy Tips For Writing Better, More Optimized SQL.
Presentation Link: ClearCode Standards Project By Ben Nadel
Comments
(Comments migrated from previous blog engine.)