• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: name that method!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name that method!


  • Subject: Re: name that method!
  • From: Stig Brautaset <email@hidden>
  • Date: Fri, 28 Sep 2007 22:53:55 +0100


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:
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>)

  • Prev by Date: Re: name that method!
  • Next by Date: Re: name that method!
  • Previous by thread: Re: name that method!
  • Next by thread: Re: name that method!
  • Index(es):
    • Date
    • Thread