Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why Objective C

 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Authors,

I had worked on C, C++ Programming Languages. However the term 'Objective C' is totally new to me.

It looks like a combination of both C and C++. Is that right?

I have a couple of other questions.

1. What exactly is Objective C? Where does it fit in the Software programming arena?

2. Why one should go for Objective C?

3. Is it targeted to run on a specific environment like Mac OS?

4. As a matter of fact, there would be few pros and cons for any programming language and Memory Management comes in top of the list. How does Objective C address that aspect?

Thanks in advance!!

Cheers,
Raghavan alias Saravanan M
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raghavan Muthu wrote: It looks like a combination of both C and C++. Is that right?


Not really. C++ was one direction taken to create an OO "version" of C, Objective-C is another.

1. What exactly is Objective C? Where does it fit in the Software programming arena?


As far as I can see, Objective-C is primarily used for creating native programs for OS X and iOS. This is because of the DNA brought to OS X from Next.

2. Why one should go for Objective C?


"go for"? Do you mean "why would one use it?". If so, because you want to create programs for the Mac (OS X) or for the iOS devices.

3. Is it targeted to run on a specific environment like Mac OS?


As said, its primary environments are OS X and iOS, but I do not believe that it is limited to those platforms.
 
author
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raghavan,

Wikipedia actually gives you a pretty good rundown on what Obj-C is: http://en.wikipedia.org/wiki/Objective-C

About memory management: On Mac OS, Obj-C has an (optional) garbage collector. iOS does not have a garbage collector, but something better is coming in iOS 5: ARC. ARC will automatically put instructions for retaining and releasing memory into your program when you compile it. So from a developer's perspective it's like garbage collection just with the big advantage that there's actually no garbage collector at runtime.

- Johannes
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean iOS 5
 
Johannes Fahrenkrug
author
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Haha, thanks, John, I fixed it
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic