Re: Java or Objective-C for Cocoa?
Re: Java or Objective-C for Cocoa?
- Subject: Re: Java or Objective-C for Cocoa?
- From: Patrick Machielse <email@hidden>
- Date: Fri, 02 Apr 2004 19:21:12 +0200
op 02-04-2004 13:50 schreef Ondra Cada
>
On Friday, Apr 2, 2004, at 12:43 Europe/Prague, Claus Atzenbeck wrote:
>
>
> I have heard that Objective-C might be the better choice for Cocoa,
>
> especially for heavy graphical stuff. Is there really a big difference?
>
>
ObjC is *much* better language for just plain anything, thanks to a
>
plethora of reasons stated nauseatingly often. For starters, let's say
>
"proper class support", "categories", "polymorphism", "message
>
forwarding", or "no garbage collector". Just try to scan archives.
From the above list, strike "proper class support", "polymorphism", and "no
garbage collector". Obj-C doesn't even have proper class variables,
polymorhism isn't a unique selling point of Obj-C, and who wouldn't like to
have an objective-C garbage collector?
>
Beside that, being compiled it's also faster, although, for a properly
>
designed application, that should not be paramount generally, and if
>
there happens to be a bottleneck in any computational stuff, you may
>
find you need to go to plain C anyway (well, which is much easier in
>
ObjC too ;))
In general I agree with the opinion that Obj-C is 'better'. It _is_ if speed
is important, or if you need to access features that Cocoa doesn't offer
(like keychain access). On the other hand, there are an awful lot of useful
third party Java libraries available if you need them. And more books to
read :-)
Claus, you may not like this advice: learn both (eventually). But don't try
to master them at the same time, because they are sufficiently different to
drive you mad if you do!
Good luck,
Patrick
--
Hieper Software
w: www.hieper.nl
e: email@hidden
_______________________________________________
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.