Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming IOS Stats News

Objective-C Overtakes C++, But C Is Number One 594

mikejuk writes "Although the TIOBE Index has its shortcomings, the finding that Objective-C has overtaken C++ is reiterated in the open source Transparent Language Popularity Index. The reason is, of course, that Objective-C is the language you have to use to create iOS applications — and as iPads and iPhones have risen in popularity, so has Objective-C. If you look at the raw charts then you can see that C++ has been in decline since about 2005 and Objective-C has shot up to overtake it with amazing growth. But the two charts are on different scales: if you plot both on the same chart, you can see that rather than rocketing up, Objective-C has just crawled its way past, and it is as much to do with the decline of C++. It simply hasn't reached the popularity of C++ in its heyday before 2005. However the real story is that C, a raw machine independent assembler-like language, with no pretense to be object oriented or sophisticated, has beaten all three of the object oriented heavy weights — Java, C++ and Objective C. Yes C is number one (and a close second in the transparent index)."
This discussion has been archived. No new comments can be posted.

Objective-C Overtakes C++, But C Is Number One

Comments Filter:
  • by Anonymous Coward on Sunday July 08, 2012 @06:32PM (#40585857)

    But that's just my opinion.

  • sorry (Score:4, Funny)

    by Anonymous Coward on Sunday July 08, 2012 @06:33PM (#40585867)

    sorry but html and javascript is the future.. it must be true because all the kids just out of college say so.

  • Agreed. (Score:5, Funny)

    by MrEricSir ( 398214 ) on Sunday July 08, 2012 @06:40PM (#40585925) Homepage

    C's philosophy doesn't integrate well with Ayn Rand's.

  • Re:Agreed. (Score:4, Funny)

    by Anonymous Coward on Sunday July 08, 2012 @06:53PM (#40585995)

    C's philosophy doesn't integrate well with Ayn Rand's.

    Like hell it doesn't.

    With C and Ayn Rand - you're on your own.

    No pussy footing around with pee-pee holding concepts like "garbage collection", "array bounds checking", "welfare", "free health care".

    Those are all for fucking wimps who need something to protect their incompetent asses.

  • by geminidomino ( 614729 ) on Sunday July 08, 2012 @06:59PM (#40586047) Journal

    Java's apparent decline seems to be because of the financial slump. Where the number of new enterprise projects using Java has reduced. Most of this work was deferred and is starting to pick up again (at least as far as I can see)

    I'm sure Oracle's mongolian horde of lawyers factors in there somewhere, too.

  • Re:Agreed. (Score:5, Funny)

    by WrecklessSandwich ( 1000139 ) on Sunday July 08, 2012 @07:26PM (#40586277)
    I think you're looking for Objectivist C [fdiv.net].
  • by Kittenman ( 971447 ) on Sunday July 08, 2012 @07:56PM (#40586501)

    In American English, one says and writes "oriented". In British English, the word "orientated" is used for the same purpose. Something I had to learn when I left the USA.

    So the British book was "Murder on the Orientat Express"?

  • Re:Agreed. (Score:5, Funny)

    by turbidostato ( 878842 ) on Sunday July 08, 2012 @08:13PM (#40586635)

    "all illegal immigrants should be sent back to whence they came. america for americans."

    Wasn't that Sitting Bull motto?

  • Re:fp (Score:4, Funny)

    by frinkster ( 149158 ) on Sunday July 08, 2012 @08:15PM (#40586645)

    Say you're coding a graphical interface and you want two buttons for okay and cancel. They both need to be blue. The toolkit yours using will have an object called Button that has the basic characteristics of what a button its, e.g., a clickable icon that does something. You sub class this Button and give it the specifics.

    Button okay = new Button;

    Button cancel = new Button;

    You now have two objects of type Button. Next you get specific.

    okay.onClick(proceed());

    cancel.onClick(abort());

    okay.color("00f");

    cancel.color("00f");

    This is terrible pseudocode butyou get the idea. instead of having to code buttons from scratch, you sub class them and only add what you need. typing on a tablet so I hope I haven't been unclear.

    OK:

    typedef struct button {
        long long color[3];
        void (*onClick)(int);
    } Button;

    Button okay;
    Button cancel;
    okay.onClick =
    cancel.onClick =
    okay.color[2] = 0xffffffff;
    cancel.color[2] = 0xffffffff;

    The C version is probably smaller and faster than your version.

  • Re:Agreed. (Score:5, Funny)

    by sam_nead ( 607057 ) on Sunday July 08, 2012 @08:46PM (#40586887)
    Don't knock having primate ancestors. Some of my best friends are primates.
  • Re:fp (Score:4, Funny)

    by frinkster ( 149158 ) on Sunday July 08, 2012 @10:06PM (#40587357)

    Everyone else will attempt to explain OO using OO terms to a non-OO programmer.

    OK, with you so far...

    Thats like trying to teach my dog to sail a boat by speaking Japanese. I'll try a different tack.

    But you're still trying to teach your dog to sail using sailing terms!

    Now if on the other hand your dog was Japanese...

    Ah, but is he sailing on a starboard tack or a port tack? And should he tack or jibe the boat? And should he attach the sheets to the tack or the clew of the sail?

  • Re:Agreed. (Score:5, Funny)

    by lennier ( 44736 ) on Sunday July 08, 2012 @10:36PM (#40587501) Homepage

    But it's bottoms-up

    Yes, Forth programming does tend to go a lot smoother when you drain a glass each time you have to look up the stack effect of a word.

  • Re:Agreed. (Score:5, Funny)

    by NalosLayor ( 958307 ) on Sunday July 08, 2012 @11:43PM (#40587969)
    Christ, only on /. could the statement "Objective C is now more popular than C++" turn into a pissing match about objectivism and then morph into a discussion about evolutionary behaviorism. I don't know if I should be disappointed or proud, to be honest.
  • by ceoyoyo ( 59147 ) on Sunday July 08, 2012 @11:58PM (#40588087)

    Amen. Linus is a pretty smart guy.

  • It's about mentioning this "god" fantasy thing

    It's no fantasy.

    God started out as a C coder, got bored and tried to rebuild the project in a self-built language similar to Brainfuck http://en.wikipedia.org/wiki/Brainfuck [wikipedia.org], now called DNA. The signs are everywhere - in fact GCC is still being used in places, notably to produce Alanine.

    Of course, it's an old project, abandoned long ago. There's cruft, commented out code and dependencies everywhere, The APIs are wildly inconsistent, the whole thing is a virus and worm magnet. Even fork bombs are rarely trapped.

    The documentation is archaic and unreadable, rewritten from the original by ancient geeks.Modern coders can only guess at what it means, and according to Nietzsche, the guy who wrote it left the company long ago.

    About the only thing going for it is a very effective, if slightly weird, bootstrapping process.

"God is a comedian playing to an audience too afraid to laugh." - Voltaire

Working...