• 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: "Eloy Duran" <email@hidden>
  • Date: Fri, 28 Sep 2007 13:58:46 +0200

How about toJSON or something like that?

Cheers,
Eloy

On 9/28/07, Stig Brautaset <email@hidden> wrote:
> Dear all,
>
> I'm currently writing a JSON framework (http://code.brautaset.org/
> JSON/ )[0]. It contains a collection of categories adding JSON
> support to existing Cocoa classes.
>
> I add a method to NSDictionary and NSArray to return an NSString
> instance containing their JSON representations, and therein lies my
> problem. What do I name this method? I initially went with -
> JSONString, but that is slightly ambiguous and can be confused with
> JSON's own string type. I'm leaning towards simply -JSON[1]. What do
> you think?
>
> [0] yes, I'm aware there are a couple of existing projects floating
> around. Call it intellectual curiosity.
> [1] I also considered -JSONText, as "JSON text" is the term used in
> the RFC (http://www.ietf.org/rfc/rfc4627.txt?number=4627) but this
> would seem to indicate that we're returning an NSText instance, which
> is not the case.
>
> PS: sorry to bother you all with such banal questions but I find
> coming up with good names to be one of the hardest problems in
> software development.
>
> 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
>
_______________________________________________

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

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