User defined functions (UDF’s) are made available to your code in one of two ways – they are either typed directly into the CFM file in which they are used, or they are put into libraries (CFM files containing one or more UDF’s and nothing else) which are then included using . From a code reuse standpoint, creating UDF libraries makes lots of sense, but don’t create a single library containing every UDF you use – try and group them into logical sets so as to not include lots of unnecessary code (which will impact processing speed). (Applies to: ColdFusion 5 or later)

Leave a Reply