Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6056947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:26:03+00:00 2026-05-23T08:26:03+00:00

Possible Duplicate: Common programming mistakes for ColdFusion programmer to avoid? I just spent half

  • 0

Possible Duplicate:
Common programming mistakes for ColdFusion programmer to avoid?

I just spent half the day troubleshooting what is apparently a rather famous gotcha for Coldfusion MX7 and below:

The nested query loop bug:

Where you are required to reference the current_row of the outer query or else you will only see the first record.

For example:

<cfloop query="outer">
  <cfloop query="innner">
    <p>#outer.field#</p><!--- this won't work, you'll only get the first row --->
    <p>#outer.field[current_row]#</p><!--- you must do this instead --->
  </cfloop>
</cfloop>

Are there any other ways in which ColdFusion does not work in the obvious way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:26:03+00:00Added an answer on May 23, 2026 at 8:26 am
    • Arrays are pass-by-value!
    • case-sensitive for certain ORM related operations / annotations
    • serializeJSON() may* mess up your data unexpectedly e.g.'yes' --> 'true', 1 --> 1.0
    • <cfdump> may not be telling you the truth
    • null and [empty string] is the same in a query object
    • CF9 doesn’t support SOAP 1.2 very well, wait til CF10 arrives
    • some structs looks like structs, but they’re not really struct (e.g. cfcatch )
    • remote methods will get invoked in a new instance of the containing CFC, so don’t count on instance variables being ready to be used
    • var scope doesn’t work as well as local. sometimes when it is defined multiple times in the same function
    • the ternary operator may evaluate your inline array/structure literal and throw exception if things inside that array/structure is not defined
    • <cfparam name="foo" default="#bar()#">, bar() is always invoked even though foo is defined
    • might accidentally run into undocumented reserved words: http://www.coldfusionjedi.com/index.cfm/2011/5/9/Interesting-issue-with-reserved-function-names-inside-CFCs
    • CF ajax tags and jQuery don’t mix
    • more here: Common programming mistakes for ColdFusion programmer to avoid?
    • and even more here: Things to watch out for in ColdFusion 9 with CF-ORM
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Most common or vicious mistakes in C# development for experienced C++ programmers
Possible Duplicate: An Ideal Keyboard Layout for Programming As a programmer I don't type
Possible Duplicate: What C++ pitfalls should I avoid ? What is the most common
Possible Duplicate: What are common concurrency pitfalls? I have basic knowledge of threading, nothing
Possible Duplicate: TSQL query to concatenate and remove common prefix Hi How does one
Possible Duplicate: Should I learn C before learning C++? As a professional (Java) programmer
Possible Duplicate: Common Uses For Pointers? I am still learning the basics of C++
Possible Duplicate: What are the common workarounds for multi-line comments in Perl? How do
Possible Duplicate: Is Clojure closer to Scheme or Common Lisp from a beginner's perspective?
Possible Duplicate: Are do-while-false loops common? Is there a reason to have code like:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.