Friday, August 19, 2011

Objective-C


Objective-C, usually writing ObjC and less Objective C or Obj-C C, is the expansion of the object oriented programming language. It is mainly used in the Mac OS X and GNUstep two using the OpenStep standard system, and in NeXTSTEP and OpenStep it is the basic language. Objective-C in GCC operating system to write and compile, because the GCC Objective-C compiler. At the beginning of the 1980's, Brad is ( Brad Cox ) in the Stepstone method Objective-C. He is on software design and programming in the real availability problems concerned. Objective-C the main description is his 1986 book, Object Oriented Programming: An Evolutionary Approach . Addison Wesley . ISBN 0-201-54834-8.
Advantages and disadvantages
The initial version of the Objective-C does not support garbage collection. At the time it was the focus of the debate, many people consider Smalltalk recovery have long" time of death", make the whole system loss function. Objective-C to avoid this problem not only has the function of. Although some third party version have been added to this function ( especially GNUstep ) in its Mac OS X, Apple 10.3 has yet to introduce this function.
Another problem is that ObjC does not include namespace mechanism ( namespace mechanism ). Replace sb. Is the programmer must be in its category names with the prefix, often causing conflict. In 2004, in the Cocoa programming environment, all Mac OS X category and function have" NS" as a prefix, such as NSObject or NSButton to know they belong to the Mac OS X core respectively; the use of" NS" is the category name in the NeXTSTEP development set.
Although the Objective-C is C's parent set, but it is not considered the basic C type for the first class object.
And C + +, Objective-C does not support operator overloading ( it does not support the ad-hoc type ). With C + + is different, but the same as Java, Objective-C only allows objects inherit from a class (not multiple inheritance ). Categories and protocols can not only provide a lot of multiple inheritance, benefits, and have many shortcomings, such as additional execution time is overweight and binary compatibility.
The Objective-C ranking
TIOBE 20105 programming language list has been released, the main change is the Objective-C ranking in the top ten. Although the Objective-C shares in the last month only reached 0.08%, but in the place of an important step -- for the first time in the top ten. This step is significant, want to know, in 2001 June TIOBE programming chart since the release, overall only 13 programming language used to enter the top ten.
The epidemic of Objective-C may be the main reason for it is the only one that can provide iPhone and iPad programming language. But from the language point of view, was born in 1986 in Object-c did not show how many new idea.
In 2011 6 TIOBE programming language list has been released, Objective-C rank continues to climb, up from tenth to seventh, grow 2.07%, is in the top twenty of the largest increase. Therefore, Objective-C has very large development space.
TIOBE announced in 2011 July programming language list, this list will become the title: Objective-C language.
Ranked sixth.
TIOBE announced in 2011 August programming language list, Objective-C continues to rise, likely this year # over C and PHP.

No comments:

Post a Comment