Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
- Subject: Re: Learning Cocoa with RubyCocoa (was Regular Expressions)
- From: David Troy <email@hidden>
- Date: Sat, 7 Jun 2008 09:05:03 -0400
Syntactical transformations, especially those where semantic parity is
retained, have never struck me as much of a barrier.
I am new to Objective C (though not to C) and have had a lot of
experience in Ruby, and I am struck by how structurally similar
Objective C and Ruby actually are. The semantic constructs I've
developed over the years for Ruby apply quite nicely in ObjC, and I
can see why there was a temptation to develop Ruby Cocoa.
Anyway, I think some of us are arguing that Cocoa is a semantic
framework, while others are arguing it's a syntactic + semantic
framework, and I don't really agree. As long as you're able to think
about the frameworks in a purely semantic manner, (which honestly
requires literacy in multiple syntaxes) then you can code in whatever
language makes you happy.
That all said, getting to a point where you think about programming in
mostly semantic terms takes some experience.
Dave
On Jun 7, 2008, at 8:52 AM, Hamish Allan wrote:
On Sat, Jun 7, 2008 at 8:20 AM, Allison Newman <email@hidden>
wrote:
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).
Perhaps what John meant was that once you've figured out what the
translation actually means, you've basically already learned
Objective-C (if you already know C).
Hamish
_______________________________________________
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