Re: newbie questions about objective-c, ruby, python, groovy and cocoa
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>) |