Author: failingProgramMember-eight gods
Objective-C, which has been used on the Apple development platform for many years, has a very unique syntax.
If you compare C # (not to mention Java first) with its language features, it would be a heaven and earth, but if you compare the application environment, it would be the most beautiful.
Declare a class and call a method. The number of times a single keyboard is more than twice that of C #. Do you believe this?
The following describes the basic form of objective-C.
Syntax introduction:
Declaration class
@ Interface car: nsobject
{
-(Void) Go; // instance method
-(Void) Turn :( INT) direction;
}
@ End
Definition class
@ Implementation car
{
-(Void) Go
{
// Driving...
}
-(Void) Turn: (INT) Direction
{
// Turn...
}
}
@ End
Check whether you are not satisfied with the above. If you use C # To write, at leastCodeReduce by half, and the distance between the typed letters will never make you confused.
However, Mac, iPhone, iPod, and iPad software developed with it has been increasing.
You must also know that developing Apple's software is not as limited as developing a Windows/Linux platform. On the contrary, Apple has added many development restrictions, for example, it must be developed on an Apple Computer (mandatory, because Apple's various sdks must be installed on the Mac operating system), you must register a Development Account (you cannot release the software if you do not need to register the SDK ).
There is such a large market for such a language. What can I say about Java? People cannot look at each other, and the sea cannot fight.
In any case, Java also has a foothold on the mobile platform. Android must be mentioned to write programs for it using Java.
Currently, Java/objective-C Programs run perfectly on the G1/iPad device. In addition, there are market demands and users need results, rather than the developer's so-called development efficiency.
End the language competition in the words of Boss Fu: "There are high and low positions for people, and there is no sense of dignity in your heart". It is a miracle that I respect any programming language.
I have used Google G1, iPad, and HTC hd2, and their systems are Android (CPU: 528 MHz, memory: 192 MB, BASIC program running effect: Smooth ), iPhone 3.0 (CPU: 1 GHz, memory: 528 M, BASIC program running effect: Smooth), win mobile 6.5 (CPU: 1 GHz, memory: 528 M, BASIC program running effect: A little slow)
I would like to use this document to give it to friends who like the language competition. Do not just think that Chinese is good, English, French, or Russian.