• 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
Learning Cocoa with RubyCocoa (was Regular Expressions)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Learning Cocoa with RubyCocoa (was Regular Expressions)


  • Subject: Learning Cocoa with RubyCocoa (was Regular Expressions)
  • From: Allison Newman <email@hidden>
  • Date: Sat, 07 Jun 2008 00:20:43 -0700

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@hidden 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@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

  • Follow-Ups:
    • Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
      • From: "John C. Randolph" <email@hidden>
    • Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
      • From: "Hamish Allan" <email@hidden>
    • Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
      • From: "Felipe Monteiro de Carvalho" <email@hidden>
  • Prev by Date: Re: Garbage collector vs variable lifetime
  • Next by Date: Re: Core Data Questions
  • Previous by thread: Re: using Undo with portable C++ data model
  • Next by thread: Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
  • Index(es):
    • Date
    • Thread