• 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: newbie questions about objective-c, ruby, python, groovy and cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie questions about objective-c, ruby, python, groovy and cocoa


  • Subject: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
  • From: Andreas Mayer <email@hidden>
  • Date: Thu, 10 Jun 2004 13:39:21 +0200

Am 10.06.2004 um 13:06 schrieb Allan Odgaard:

Seriously, is the above more readable than:
if(str == otherStr)
if(num < otherNum)

Yes. What is "==" and "<" supposed to mean? This is not at all clear. Whereas isEqualToString: and == NSOrderedAscending is very difficult to misunderstand.

But I don't like your variable names in either example. Should be something like inputString and customerName or the like. :)

only when methods are cascaded, [...] but the logic is rather simple

Well, that's what comments are for, right? ;-)

And since Xcode provides a nice auto completion feature, the typing is not much of a problem. :)

It certainly is for me! :)

Why?


Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: "KlunkyRobot" <email@hidden>)
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: Allan Odgaard <email@hidden>)
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: Andreas Mayer <email@hidden>)
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Determining image file types
  • Next by Date: HeaderDoc 8 vs. doxygen
  • Previous by thread: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
  • Next by thread: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
  • Index(es):
    • Date
    • Thread