-
Notifications
You must be signed in to change notification settings - Fork 625
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
arrayCount should be named something else #59
Comments
Maybe you mean
? |
I'd call the array The bigger point is |
Thanks for the quick reply guys, I did mean nameCount or numNames, sorry :( |
Could we do it this way. Since count is now a property, it'd be now under the preferred section Preferred: Not Preferred: |
Is it possible to change this line:
NSInteger arrayCount = [self.array count];
to either
NSInteger names = self.names.count, or NSInteger names = [self.names count]
This is because I've seen a lot of inexperienced developers use array when naming an array, even though they should name using as high level of abstraction as possible (i.e. instead of nameArray, they should use names). And I think your style guide has a big influence within the Objective-C community.
Thanks
The text was updated successfully, but these errors were encountered: