Components

This category covers ColdFusion Components (CFCs).

Problems

How do I avoid forgetting to declare local variables?
It is critical when writing component methods and UDFs that every variable defined in the code is pr...

How do I get around a lack of constructors in CFCs?
A widely adopted practice is to create an "init" method that returns the object. Example: Th...

How to I initialize a CFC at the same time as I create it?
In many examples using CFCs, the call that creates the CFC also calls an init() method. This is done...