Swift or OBJECTIVE-C, how do you choose

Source: Internet
Author: User

Apple released the new programming language Swift on 2014WWDC, claiming that it is fast, modern, secure, interactive, and fully superior to objective-c, and will change the way we write iOS and Mac apps in the future. But in the face of this new programming language, the new entrants have some doubts and entanglements about learning Swift.

Swift is used to compose OS X and iOS applications that work with Object-c on Mac OS and iOS platforms, change Obejective-c's complex syntax, make it easier to use, have a future, and delight many developers, andSwift's obvious features are:

1, for the Apple development tool brings the Xcode playgrounds function, this function provides the powerful interactive effect, can let the swift source code in the writing process display its running result in real time;

2, based on C and objective-c, but there are some compatibility constraints C;

3, the use of a safe programming mode;

4, interface based on cocoa and cocoa touch frame;

5. The dynamic characteristics of Smalltalk are preserved.

Of course, the more advantages of Swift are in detail processing, such as providing type derivation, generics, set variability, string comparisons, and so on, the developers familiar with OBJECTIVE-C can clearly feel the superiority of swift, the small part is not here swim.

But about learning swift, a lot of developers are still a little confused, Amit Bijlani gave his own views for your reference.

Novice programmers can also learn swift directly without having to learn objective-c first.

Swift is a completely new language, with no master-slave relationship with objective-c or C, which means that they are programming languages and adhere to some basic concepts and paradigms, but developers do not need to learn another before learning one. Novice programmers can also directly learn the official Swift documents issued by Apple without having to learn objective-c first.

Learning whether objective-c to learn Swift is subject to availability

1. If you are learning iOS as a hobby or motivated by curiosity, go to Swift learning.

2. If you think of iOS development as a career, then you know that at least 1 million applications are written in Objective-c, and Swift has just been released in 2014, so your future career app development is still likely to use OBJECTIVE-C. So you need to learn objective-c to get a job until Swift becomes the standard, which will probably take years.

3, learning two languages at the same time will also be good for you. Your prospective boss might even let you switch the existing Objective-c app to Swift. Amit Bijlani has reservations about the idea that the most important part of an app is its functionality rather than the language it uses, so rewriting existing apps may not be popular.

Benefits of Learning Swift

1. Playground makes Swift easy to learn, and once you've learned swift, it's easier to understand and learn objective-c if you think of iOS development as a career.

2. Swift is a modern language, and if you learn swift, it means that you are ready for the future as well, because Swift will be the language of the next generation of applications, including apps on Apple Watch.

3, the world has not had 5 years of experience in the swift developer, but if you start learning Swift now, after 5 years you will become one of them.

Devstore : A new language that draws on the essence of Objective-c, Rust, Haskell, Ruby, Python, C #, and CLU, and now has a lot of tutorials, demos and other resources Developers can learn through a variety of channels.

The idea of whether to learn Swift is also opinion, for reference only, Apple officials said: Objective-c will not disappear, swift and objective-c can be used for cocoa and cocoatouch development. But Apple seems to encourage developers to use Swift for new development, potentially reducing the use of objective-c language and even deprecation in future frameworks and API development. To be prepared, to stay ahead is right, so, learn from now.

Swift or OBJECTIVE-C, how do you choose

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.