Re: Why Objective-C over Java?
Re: Why Objective-C over Java?
- Subject: Re: Why Objective-C over Java?
- From: Michael Dupuis <email@hidden>
- Date: Sat, 26 May 2001 15:49:10 -0400
Hopefully I can add some input on this topic as someone who is using Java
and Cocoa for an application that will be released shortly.
First, I don't think it's really a matter of one over the other. I think
that having both in your toolbox is very useful. While Java can be really
helpful in getting started with learning Cocoa if you already know Java, you
really wouldn't want to pay the price of the extra overhead if you were
writing a smallish app or utility. Also, as already mentioned, most examples
you will find are written in Objective C.
Now, why did I go with Java? Mostly because I wanted to leverage the over 6
years of Java and JDBC experience that I had vs. the few months I've been
using Objective C. Using JDBC also required the use of the Java VM, but the
productivity gains over having to learn every native database connectivity
library to connect outweighed the cost. My application is actually a hybrid,
mostly Java, with parts also written in Object C. It's nice that the
environment is flexible that way.
As to performance, I've got to say that from my experience, for the most
part, any slowness is Cocoa bound, meaning, my Java Cocoa app is as fast or
faster than any of the other native Cocoa apps I've used, Mail.app for
example. A table object in my application can be slow, but I notice that in
general, cocoa tables and outlines are slow no matter how the application
was written.
And while the first time you run the application after rebooting, subsequent
runs take at most half the time to launch. This seems to be because of the
way Apple implemented their version of the JVM.
All that said, my next project and my next application WILL be written in
native Cocoa.
Michael
>
From: email@hidden
>
Reply-To: email@hidden
>
Date: Sat, 26 May 2001 10:45:19 -0700 (PDT)
>
To: email@hidden
>
Subject: cocoa-dev digest, Vol 1 #65 - 14 msgs
>
>
However I'm curious how many people have been there, and how do you
>
think about Java in OS-X and PB/IB environment. Would it be more
>
productive to start with Objective-C? Isn't there any major pitfall
>
hidden? Most people in this list seems to be working with Objective-C
>
API. Does Apple recommend Objective-C over Java? if so, what's the
>
reasoning behind this?