Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ul> <li><p>set <code>&lt;cffile&gt;</code> upload path to a web accessible, CF-enabled directory!!!</p></li> <li><p><code>isStruct()</code> before <code>isObject()</code> in a series of <code>&lt;cfif&gt;</code>'s expecting isStruct only catches struct (cfc component returns True from isStruct() as well)</p></li> <li><p>no <code>HtmlEditFormat()</code> when displaying user-generated content (XSS)</p></li> <li><p>forgot to add output=false on CFC methods</p></li> <li><p>not using <code>&lt;cfqueryparam&gt;</code> inside <code>&lt;cfquery&gt;</code></p></li> <li><p>not scoping not-so-evident variables like cfquery name or loop index in a method</p></li> <li><p>use <code>&lt;cfform&gt;</code> when all they need is plain-vanilla HTML <code>&lt;form&gt;</code></p></li> <li><p>forgot to <code>UrlEncodedFormat()</code> user-defined URL</p></li> <li><p>use <code>&lt;cffeed&gt;</code> without sanitizing the content</p></li> <li><p>trust <code>isDate()</code> too much (any number would return true)</p></li> <li><p>expect string comparison to be case-sensitive (IS and EQ operators are case-insensitive)</p></li> <li><p>sending strings "yes" or "no" to <code>SerializeJSON()</code> without appending a whitespace to preserve the string (otherwise <code>SerializeJSON()</code> or <code>DeserializeJSON()</code> will translate them to "true" and "false")</p></li> <li><p>not putting singletons services in application scope</p></li> <li><p>blindly create as much CFCs as one wants like one would do in JAVA</p></li> <li><p>putting complex value/object into a list (can't, list is just a string of comma-seperated values)</p></li> <li><p>writing functions that takes array as an argument and modify that array expecting that array will be modified (array in CFML is passed by value)</p></li> <li><p>blindly changes <code>access="remote"</code> on a method and expect it to work (when remote proxy is generally more appropriate)</p></li> <li><p>use a lot of WriteOutput() in cfscript when CFML is more appropriate</p></li> <li><p>blindly uses <code>IsDefined()</code> when <code>StructKeyExists()</code> can generally do it more efficiently</p></li> <li><p>blindly uses <code>Iif()</code> and <code>De()</code> without knowing they're as nasty as Evaluate() </p></li> <li><p>update some code in onApplicationStart() and not seeing the difference on refresh (restart the app!)</p></li> <li><p><code>&lt;cfloop&gt;</code> or '' outside of <code>&lt;cfquery&gt;</code> causing multiple new query connections to be opened. 99% of the time it's better to have multiple statements inside of one cfquery to perform multiple actions, or to UNION data together.</p></li> <li><p>hardcoding absolute path when <code>ExpandPath()</code> is generally better </p></li> <li><p>forgot to turn on Unicode support in DSN (Unicode becomes '????')</p></li> <li><p>not upgrading to the latest JRE and Hotfixes</p></li> <li><p>misusing Client scope and blow up Windows registry...</p></li> <li><p>uses depreciated/obsolete functions/features (i.e. flash form aka flex 1.x alpha, cftable, Verity full-text search, etc...)</p></li> <li><p>passing <code>CFCATCH</code> to a function as argument type <code>Struct</code> (<code>CFCATCH</code> behaves like a <code>Struct</code>, but it is not. Just pass it as type '<code>Any</code>').</p></li> <li><p>Not reading <a href="http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbCFCBestPractices" rel="noreferrer">CFC Best Practices</a> from ColdBox wiki.</p></li> <li><p>buying in the mindset of .ASP(X) or .JSP or [insert web technology] are always better.. ;)</p></li> <li><p>not use <code>PrecisionEvaluate()</code> and getting all sort of floating point rounding error especially when calculating money.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload