Hey All

Just a quick query on naming cfc's and functions. Does anyone have a
convention for dealing with cases when your keyword is both a noun and a
verb.

The example is "upload", I can perform an upload() (verb) or I can have an
Upload object (noun) which has certain properties that relate to it
(uploadDate, userId, etc...).

Any ideas?

The best I've come up with is:

<cfcomponent displayName="Upload">
        <cffunction name="newUpload">
                <!--- logs that an Upload has been triggered --->
                ....
        </cffunction>
        <cffunction name="finaliseUpload">
                <!--- logs that the Upload has completed successfully --->
                ....
        </cffunction>
        <cffunction name="logUploadError">
                <!--- logs a problem with the Upload --->
                ....
        </cffunction>
</cfcomponent>

Maybe a non issue, but my brain is in Friday mode.



Cheers

Mark


______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to