Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming of things #3

Open
levous opened this issue Jun 2, 2011 · 1 comment
Open

Naming of things #3

levous opened this issue Jun 2, 2011 · 1 comment
Assignees

Comments

@levous
Copy link
Contributor

levous commented Jun 2, 2011

While it uglifies the code, it is best practice to prefix both class names and any category methods with some uniquish characters. JJD would be appropriate. Without namespaces in Cocoa, this provides a level of protection against collision if another set of source code. or a library or framework, also defines a similar thing called FileReader or implements a similarly named category method on NSData.

Cocoa will happily pick one, and it might not be the one you want, even if you omit the header files for colliding names.

@johnjohndoe
Copy link
Owner

Hi Rusty. I did not plan to create the LineReader classes as a framework. Therefore, I left out the prefix. I know it is best practice with modules or frameworks. I maybe find time next week to refactor the classes.

@ghost ghost assigned johnjohndoe Jun 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants