Re: That Obj-C/Java Req -- Re: Jobs
Re: That Obj-C/Java Req -- Re: Jobs
- Subject: Re: That Obj-C/Java Req -- Re: Jobs
- From: Ondra Cada <email@hidden>
- Date: Sun, 17 Nov 2002 04:37:23 +0100
On Sunday, November 17, 2002, at 03:23 , Steve Klingsporn wrote:
- Java byte code is much tighter and smaller in size than PPC or x86
machine code.
Might be, never checked. With the size of resource data of an average
application, I can't offhand think of a less important trait, though.
- You have much better library support in Java, not only from Sun, but
Netscape, IBM, et al.
Definitely the opposite. Just compare NSString to the Java String crap!
- Memory management is much better in Java. In Objective-C and C, you're
leak-prone.
Definitely the opposite. Refcounting is the only garbage collector which
*works* actually in a distributed world. Java's GC is good for tic-tac-toe
(whose implementation, that's agreed, it considerably simplifies: who
needs a tic-tac-toe, though?)
- Exceptions prevent you from crashing hard in Java. In Objective-C, you
crash hard.
In C you crash hard, and it's an *extremely* fair price for, well, for
having C.
In ObjC you have better exceptions than in Java (since they are not
stained by the "throws" nonsense).
- Networking is much easier in Java than in Objective-C.
What exactly is "networking"? It depends on libraries, *not* on the
language. DO in C is as easy as possible.
- You can rapidly develop applications much faster with Java than
Objective-C.
Definitely the opposite, since Java
- does not support classes properly (eg. no class methods in interfaces,
no this/super in class /Javaspeak static/ methods, etc);
- does not have categories (extremely important, for it disables proper OO
design *very* often);
- can't poseAsClass;
- does not have polymorphism (well thanks to NSSelector it does, but it
makes for *EXTREMELY* ugly and inconvenient code);
- does not support message forwarding;
- ...and hence can't properly embed objects;
- neither can reasonably implement HOM;
...
And much and much more. Hell, I *wanted* to learn and use Java, and I
dived into it with a big gusto. Then alas I've bumped into what crap the
language is: oops. My strong bias against the rot is not a prejudice -- it
is a bitter experience.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.