So, what is the convention? I assume I should prefix my class names so that I minimize potential for name space conflict, but what should I use as a prefix? The options readily available to me are:

1) Developer or company name
2) Application or framework name

Given that I have a Protocol Engine app or framework with a class called ProtocolDatabase, I would have the following options:

MCProtocolDatabase
MACProtocolDatabase
CDEProtocolDatabase
PEProtocolDatabase

Using my name 'Michael A. Crawford' or my company name 'Crawford Design Engineering' or the app name 'ProtocolEngine'.

Should the prefix be limited to a certain number of characters? 2 or 3, for example. Or, is it acceptable to use a higher number (4 or 5) of characters in the prefix?

I'm used to namespaces, which I use in C++ and used to use when writing C# code.

Discussion?

Thanks.

-Michael
----------------------
The united stand.  The divided get played.

-- Bernie MAC




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to