Should you learn directly from Swift or objective-c?

Source: Internet
Author: User

after Apple released the swift language at the WWDC conference in 2014, many beginners had a common question of whether to study C or objective-c. Beyond that, it seems that people are still wondering which part of Swift is right for the iOS development ecosystem.

Should you learn c/objective-c first or learn swift directly?

Although Swift is a brand new language, it is inextricably linked to objective-c and C, and Swift is actually a variant of Objective-c's text, and for this new language, Apple is far less difficult than we think. The LLVM compiler is simply translating swift into objctive-c code, then translating the OBJECTIVE-C code into the C language code, then translating the C code into a compilation and eventually translating it into machine code. Although Swift is objective-c, Swift is much more studious than objective-c to beginners, and it absorbs the essence of all languages, so if homeschooling suggests direct learning of Swift, if you attend a training proposal to learn c/objective-c first, This can better understand the underlying implementation of the principle.

Are you learning objective-c and should you learn Swift?

This will have to be a test case. If you're learning about iOS as a hobby or curiosity, then go to Swift to learn. If you're working on iOS development, you know that there are at least 1 million apps out there that are written in Objective-c, and Swift was just 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 several years. It will be good for you to learn two languages at the same time. Your future boss may even allow you to switch existing objective-c apps to Swift.

I suggest that beginners choose Swift because it is a friendly language, especially playground make it easy to learn. Once you have learned about Swift, it will be easier to understand the learning objective-c if you think of iOS development as a career.

Finally, Swift is a modern language, and if you learn swift it means you are also ready for the future, because Swift will be the language of the next generation of applications (including Apple Watch applications). The swift language is the gift that Apple gives to everyone. There are no swift developers with 5 years of experience in the world, but if you start learning Swift now, you will be one in 5 years.

My last suggestion is that no matter which language you choose, learn it and master it. In the end you will find that as long as you learn the iOS SDK, it is not the most important language to use. And after learning a language can easily start to learn another, the most important thing is to start learning from now.

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.