Re: Code style (was: Notify With Parameters)
Re: Code style (was: Notify With Parameters)
- Subject: Re: Code style (was: Notify With Parameters)
- From: Jens Alfke <email@hidden>
- Date: Thu, 02 Jun 2011 11:38:47 -0700
On Jun 2, 2011, at 1:17 AM, Conrad Shultz wrote:
> Google's Objective-C style guide
> (http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml)
> directs that spaces in method declarations be minimized. For example:
There’s a lot of Google’s code style that I hate, and I wouldn’t hold it up as something everyone should follow. (The 80-character line length and 2-space indents are particularly infuriating.)
Personally, I find it more readable to have spaces after the “:”s in message expressions.
IMHO it’s not worth trying to standardize where people put spaces in their lines. Everyone has a different opinion and it just leads to religious wars.
But naming conventions are important. Lowercase method names are pretty universally used. I’m also strongly in favor of distinguishing instance variable names with a leading or trailing underscore, because it eliminates a lot of confusing ambiguities when reading code.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden