Skip to content

Naming of things #3

@levous

Description

@levous

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions