Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name that method!




On 28 Sep 2007, at 21:31, Andy Lee wrote:
On Sep 28, 2007, at 1:28 PM, Guy English wrote:
JSONRepresentation

I'll add another vote for this one. There are lots of precedents for "xxxRepresentation" methods throughout Cocoa. I think the uppercase "JSON" looks funny for a method name, but it's consistent with how acronyms at the beginning are capitalized elsewhere.

Thanks to everyone for the help! I'm going to go with JSONRepresentation. (Though I'm also fond of Jason.)


The decoding method, on NSString, is currently called - objectFromJSON. Should I go for the slightly longer - objectFromJSONRepresentation to match the encoding method?

Stig
--
http://code.brautaset.org
http://blog.brautaset.org


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >name that method! (From: Stig Brautaset <email@hidden>)
 >Re: name that method! (From: Guy English <email@hidden>)
 >Re: name that method! (From: Andy Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.