• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: obj-c vs. java for secure system development
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >obj-c vs. java for secure system development (From: Alex Rice <email@hidden>)

  • Prev by Date: Re: If Object-C is "the" language, then why is no one using it?
  • Next by Date: Re: Jobs
  • Previous by thread: Re: obj-c vs. java for secure system development
  • Next by thread: Re: Marketing your Cocoa App... Re: Jobs
  • Index(es):
    • Date
    • Thread