It's not a secret anymore!*
The moose likes Mac OS and the fly likes What do you think about Objective-C? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "What do you think about Objective-C?" Watch "What do you think about Objective-C?" New topic
Author

What do you think about Objective-C?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey,
I got "Learn Objective-C on the Mac" and I will start reading it very soon.
What do you thing in Objective-C in general?
Is it a decent, well-designed and elegant language?
Do you have fun writing Objective-C code? or it is boring like writing in C (at least to me)?
Would you please share your opinion?
Thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

John Todd wrote:Hey,
I got "Learn Objective-C on the Mac" and I will start reading it very soon.
What do you thing in Objective-C in general?
Is it a decent, well-designed and elegant language?
Do you have fun writing Objective-C code? or it is boring like writing in C (at least to me)?
Would you please share your opinion?
Thanks.


It has some really nice features and some pain in the butt features. ;)

It is just another language.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Objective-C looks to me a low level language, just like C.
I'm not in a position allows me to talk about it but I don't think it has abstractions we find in Java or Scala.
Pointers and manual memory management, it is easy to shot oneself in the foot.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

BTW, do you have a recommendation for Objective-C book?
I'm considering these:
Learn Objective-C for Java Developers
Learn Objective-C on the Mac
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

John Todd wrote:BTW, do you have a recommendation for Objective-C book?
I'm considering these:
Learn Objective-C for Java Developers
Learn Objective-C on the Mac


Objective-C to me is not low level, there are many abstractions in the language and in libraries/frameworks that are out there. The amount of code I need to write is still very small in comparison to really having to write low level code.

I got the Apress iPhone development book and the one buy Wesley Addison, but the first version that covered 2.x.

I never got a book that was just "objective-C"

Mark
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Java eliminates many headaches like signed and unsigned types, on the other hands they are essential parts in Objective-C.
This is why I got the feeling I'm moving to a low level language.
Of course, no one is forcing me to learn Objective-C, I just have a couple of impressions about it.
Maybe after I become familiar with it I will appreciate it.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

I have briefly looked at it and also got a book about Objective-C since I got a MacBook Pro and an iPhone.

The syntax for calling methods on objects looks totally alien. Instead of object.method(arguments) it looks something like [object method name:value]. This strange syntax comes from Smalltalk and is totally different from more conventional languages such as Java or C++.

It looks like a strange version of C with strange Smalltalk syntax that doesn't really fit with the rest of the language. There's garbage collection, but not always (I think that on the iPhone there's no garbage collection). It is a low-level language, with pointers and manual memory management.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I haven't done much with it, but I liked it. As Mark said, there are pros and cons, like any language. Some things are cumbersome, others straight forward.

Xcode and Cocoa make it fun.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

When I was talking to Brad Cox, who invented it, he said that it was as much like C as it could be, to ease acceptance by the programming community. This was, of course, back in the 80s. It was an attempt to add OO functions of Smalltalk to a C-like language. Without breaking the brains of C programmers.

The biggest proponents of Objective-C were the folks at Next/NextStep, Job's first post-Apple company. They did all their cool UI stuff in it. And of course, NextStep is the soul of OS-X, the software the allowed Apple to stay competitive enough to invent the iPod and iPhone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What do you think about Objective-C?
 
Similar Threads
Why Objective C
questions objective or subjective
what's objective C?
Comparisons to Java?
Why should anybody learn Objective-C if already know Java?