Your init () method should not return the scope of this if you call it using the syntax new my.cfc (). True story.
If you are inside cfc and want to set the property, do not use this.setFoo (), just go to setFoo (). The same goes for getFoo (). This .xxx () is like exiting the front door just to return. In addition, your access = private user getters and setters will not work, as functions will not be in this area.
"var foo" vs "local.foo" - personally, I prefer var'd variables, as there are fewer), and for b) less code to read.
Use javadocs style comments. The documentation is your friend.
public void function myFunction( string arg1 = 'default', boolean arg2 ) { return true; }
Mike causer
source share