I can't for the life of me imagine why you would think that. I mean, I'm not
theorising here, I have actually done it. My very first Cocoa app was a
RubyCocoa app, and my second, a true, full-featured app, is just about done.
And you know what, I never did regret my decision to not really learn Objective
C.
Now, of course, I can readily believe that one of these days I'm going to want
to do something a bit more processor intensive, or which needs a better
threading architecture than that provided by Ruby. But you know what? When
that day comes, I'll learn Objective-C. But what's great about the way that I
did it was that I will already know Cocoa at that point. I'll know how undos
work, I'll know how to use delegates and data sources, I'll know how Apple has
implemented the MVC pattern, and all of this will make learning the bits of
Objective C that I am currently blissfully unaware of a very simple task.
Really, once you figure out how to translate
obj = [[SomeClass alloc] initWithName: @'my name' size: 16]
to
obj = SomeClass.alloc.initWithName_size('my name', 16)
you're ready to start programming with RubyCocoa (assuming of course that you
know already how to program in ruby). As an added bonus, if you're typing on a
French keyboard, you have less [ and ]'s to type, which is a blessing because
the damn things are three-key combos! :-)
Anyway, I think I'll stop spamming the list with RubyCocoa advocacy now. It's
just that I can't help thinking about all of the comments that we see on this
list from people coming from Java or some other language where header files
aren't necessary, or which don't have pointers. They are confused by these
things, and having to learn that at the same time as learning Cocoa itself
makes for a very steep learning curve. The RubyCocoa or PyObjC bridges make it
possible to reduce the steepness of the curve.
> Le 7 juin 08 à 04:54, [EMAIL PROTECTED] a écrit :
>
> On Jun 6, 2008, at 2:10 AM, Allison Newman wrote:
>
>> you don't have to fully learn Objective C's syntax at the same time
>> as Cocoa.
>
> Ok, all kinds of alarm bells just went off. Obj-C is a very small
delta from C, and if you avoid learning it, you will regret it.
>
> -jcr
_______________________________________________
Cocoa-dev mailing list ([email protected])
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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]