With the new ways of writing CFC in CF9, what are some of the coding convention new to CF9?
Here are some I can think of...
init()
method that returns itself, since New
will call init() if found.init()
if it is an ORM entity, otherwise expect Exceptions...THIS.setXXX
in where XXX is property name inside init(), so that it will call the implicit setters or custom setter if available.isNull(arguments.optionalArg)
instead of isDefined()
do we still need to set attribute output=false for component and functions in script style CFC?
I wouldn't think so. <cfscript>
by its nature suppresses any whitespace and needs writeOutput()
in order to have any output at all.