Re: obj-c vs. java for secure system development
Re: obj-c vs. java for secure system development
- Subject: Re: obj-c vs. java for secure system development
- From: Ondra Cada <email@hidden>
- Date: Sun, 17 Nov 2002 15:10:10 +0100
On Sunday, November 17, 2002, at 06:28 , Alex Rice wrote:
Seems to me Objective-C could be just as bad as C code except the ObjC
frameworks have had many years of scrutiny to see all the dangerous
mistakes.
Yup, that's more or less sums it up: since ObjC is a C superset, you *can*
have any C-based problem here. You don't, in practice, eg. since you
hardly ever use a plain C buffer in a Cocoa application; the possibility
though is there.
In my experience (10+ years ObjC, a few months Java) in practice the
security more or less equals. Java as a language has better security of
course; it is countered though by the fact that ObjC/Cocoa power allows
you to write *considerably* less code to achieve the same result, and of
course, the less code, the smaller probability of bugs.
The important thing in ObjC is discipline: due to the C inheritance, it
allows utterly ghastly things. If you don't use them (and keep Cocoa
instead), you are as secure as in Java, probably more.
---
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.