Discussion Locked

Download: Best practices for using ColdFusion Components

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

https://www.techrepublic.com.com/5138-3513-5718770.html

[b]Do you have a ColdFusion best practice to add to this download?[/b]

2 replies

by brian428

I know a few folks said they had some trouble finding the discussion thread so I thought I'd start it off to draw a little attention to it.

by roger lancefield

In particular it was good to read some information about the need to "var" declare implicitly created variables within CFCs, such as loop index counters. My query names and cfsavecontent variables are all var declared where used, but I'd overlooked my index counters. I've been maniacally searching my code looking for undeclared instances. I'm probably fortunate to have not experienced issues owing to this. Interesting tip regarding the "method local" struct too!

This discussion is closed to new replies.