Objective C

This is a discussion on Objective C within the C++ Programming forums, part of the General Programming Boards category; Objective C does to C basically what C++ does. It addes ADT, or objects, or classes...whichever way you prefer to ...

  1. #16
    Registered User
    Join Date
    Dec 2002
    Posts
    29
    Objective C does to C basically what C++ does. It addes ADT, or objects, or classes...whichever way you prefer to say it. It does so in a different way though...whereas C++ is geared toward static type checking and binding and static whatnot in general, Objective C is geared toward dynamic type checking and binding and code loading (it loads code segments as needed).

    Strong static type checking is generally considered better than dynamic type checking due to the ease of catching errors at compile time. This is one reason I think C++ is more widley used...also, C++ can do dynamic type crap with virtual functions if you want too, negating that Objective C advantage. I'm not sure if Objective C has some other features like templates either. (It may...I havn't used it, Ive just run into language summaries...hopefully someone who has used it will reply too.)

    Basically, Objective C seems like at least a credible alternative to C++ (although personally I'd prefer the strong type checking and virtual functions of C++) but what could have happened was that C++ just took root based on other things than it clearly being better. I think it came out first...which would give it a better foothold to build a user base...if most already use C++ others are more likely to use it too. It would be supported better in terms of compilers and libraries and whatnot. Or mabye by sheer choatic, luck factors C++ just became more widley used...Beta max was supposed to clearly be better than VHS and look what happened there. The best doesnt always become the standard. I would like to hear from someone who actually has some experiance though and isnt just hypothesizing.

  2. #17
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Objective C is somewhat making a come-back due to OS X. Practically everything in OSX is written in Objective C. This stems from Apple aquiring NeXT, and NeXT OS stuff being written in Objective C. I hear they are trying to expand Objective C to include C++ libraries and such. How exactly they plan on doing this I cannot say.

    On the Objective C vs. C++ portion of this. I think it is fair to say that is C++ is more popular, atleast among PC programmers. I do not think the Objective C compilers are as tight as C/C++ ones, although that is just a guess. That obviously does not make C++ better than Objective C, and vice versa. Use hammer when you need to hammer a nail, not when you need to screw in a screw.

  3. #18
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Cela

    Okay, I'll rephrase my statement. Are you sure that C++ is more popular? Do you have numbers to prove it?
    Google returns about 114,000 matches for "objective c" and about 7,690,000 matches for "C++".
    Thus it is valid to say that C++ is more popular than Objective C (duh).
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  4. #19
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>Google returns about 114,000 matches for "objective c" and about 7,690,000 matches for "C++".
    Thank you. That's what I wanted to see, real proof instead of "I don't know much about Objective-C so C++ is better because it's cooler".

    >>(duh)
    I won't comment on that, everyone seems to hate me enough as it is in this thread.
    *Cela*

  5. #20
    Registered User
    Join Date
    Dec 2002
    Posts
    29
    >>Google returns about 114,000 matches for "objective c" and about 7,690,000 matches for "C++".
    Thank you. That's what I wanted to see, real proof instead of "I don't know much about Objective-C so C++ is better because it's cooler".

    >>(duh)
    I won't comment on that, everyone seems to hate me enough as it is in this thread.


    The duh is there because for anyone who knows anything about programming...and prob for those who don't, C++ is obviously WAY more widley used than Objective C. That doesn't say anything about it being better...but even the average ten year old programer prob knows it's more popular. When you think widley used programming languages you immediatley think Java, C, C++ and then things like Lisp, VB, delphi or pascal start popping up...but I don't think most even pass by the notion of Objective C (sorry if I left out another popular language...covering them all wasn't really the point). Although mabye that will change based on what Orbitz said.

    Oh and sorry if you felt disliked...my post was in no way ment to oppose or attack one of yours...

    One way to avoid that negative feeling from other posters is to avoid your first reaction to a post you take negativley...which is to yell "Flame on!" like the human torch and insult or be harsh back. If you keep your cool and respond in a level headed, or generally nice manner, the other guy will usually feel bad about his post...or even realize it may have been harsh for the first time (I post a lot thinking I'm not being mean or rude, but later re-read my post and see how it could be taken negatively)...and be a much nicer guy in the follow up post. People arnt usually out to make others feel bad here and following up a harsh post withithout attacking back will usually do a lot to starting a much more meaningful conversation about the thread.


    Anyway...my humble two sense...take it or leave it...
    Actually I thought everyone was being pretty civil in this thread...and that mabye you were reading into what they posted the wrong way.
    Last edited by dynamic_cast; 01-15-2003 at 12:45 PM.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Objective C
    By knightjp in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 04-01-2009, 01:18 PM
  2. C/C++ Objective questions
    By prayami in forum C++ Programming
    Replies: 22
    Last Post: 04-08-2008, 12:58 PM
  3. does anyone here do programming in objective C
    By Silvercord in forum C++ Programming
    Replies: 7
    Last Post: 03-19-2003, 02:48 PM
  4. Programming Objective C in Mac OSX
    By MacUser in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-17-2002, 08:12 AM
  5. gcc and objective c
    By Captain in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-13-2002, 03:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21