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)."
I prefer Subjective-C (Score:5, Funny)
But that's just my opinion.
sorry (Score:4, Funny)
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)
C's philosophy doesn't integrate well with Ayn Rand's.
Re:Agreed. (Score:4, Funny)
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.
Re:Java and C duking it out (Score:4, Funny)
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)
Re:C Programming Language (Score:4, Funny)
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)
"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)
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)
Re:fp (Score:4, Funny)
OK, with you so far...
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)
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)
Re:C Programming Language (Score:2, Funny)
Amen. Linus is a pretty smart guy.
Re:OH I GOT MODDED DOWN??? (Score:5, Funny)
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.