Should I learn Swift or Objective-C directly ?, Swiftobjective-c
After publishing the Swift language learning course, we received a lot of emails and private messages asking if we still need to learn C or Objective-C. In addition, it seems that people are still confused about what part of the iOS development ecology Swift is suitable. Through this article, I hope to clear your doubts and send you to the correct learning path.
Should I learn C/Objective-C first or Swift directly?
Swift is a brand new language and has nothing to do with Objective-C or C. I mean they are all programming languages and follow some basic concepts and examples, but you don't need to learn the other before learning one. Even if you are a beginner in programming, you can learn official Swift documents published by Apple without learning Objective-C first.
I'm learning Objective-C. Should I switch to Swift?
This depends on the situation. If you learn iOS as a hobby or out of curiosity, go to Swift. If you think of iOS development as a profession, you need to know that at least 1 million apps outside are written in Objective-C, and Swift was just released in 2014, therefore, you may still use Objective-C for app development in your future career. So you need to learn Objective-C to get a job until Swift becomes the standard, which will take several years. It is also good for you to learn two languages at the same time. Your boss may even ask you to switch the existing Objective-C app to Swift. However, I keep this point of view because the most important part of an application is its functionality rather than the language it uses. Therefore, the practice of rewriting an existing app may not become popular.
I suggest beginners select Swift because it is a friendly language and thanks to playground for making it easy to learn. Once you have learned Swift, it is easier to understand Objective-C if you consider iOS development as a profession.
Finally, Swift is a modern language. If you learn Swift, you are prepared for the future, because Swift will be the language for the next generation of applications (including applications on Apple Watch ). The Swift language is a gift from Apple. Swift developers who do not have five years of experience in the world, but if you start to learn Swift now, you will become one of them after five years.
My final suggestion is that no matter which language you choose, you can learn it and be proficient in it. Finally, you will find that, as long as you learn the iOS SDK, which language you use is not the most important. After learning a language, you can easily start learning another language. The most important thing is to start learning from now on.
There is no need to learn objective-c when Apple launches Swift.
No, according to apple, Swift is superior to objective-c in all aspects. Since it is better, why do we need to learn Old and low performance?
The advantage of objective-c is maturity, but maturity cannot cover up its shortcomings. Although Swift is young, it may have great potential (whether it has great potential to develop with apple ), after all, it only applies to apple
If you focus on apple development, it is better to learn Swift directly. It is easy to learn one course first, even if needed. For the moment, Swift has few materials, but as long as you have the perseverance to learn, this should not be a problem. Besides, what can you worry about?
To learn the swift language, do you need to learn objective-c?
Clearly tell you: No.
Swift was developed by Apple to replace ObjC. If he still needs to have the ObjC foundation for learning, it would be so sad...
Furthermore, it is easier for a novice programmer to learn swift than other programming languages.
I hope my answer will help you! ^ O ^