Since Apple released the new iOS programming language, Swift, online forums and indeed the Amsys training email inboxes have been awash with questions like, Well – what do I do now? Should I learn Objective-C or Swift?
And our answer has been – both! Here are our top 3 reasons why you should learn both iOS programming languages.
If you want to be a successful iOS app developer, you will need to understand Objective-C.
Why? Because you will need to understand the framework and the architecture of iOS apps.
Objective-C and the C language has been around for 20 years. Therefore, any iOS developer worth his salt, will need to understand the fundamental building blocks of iOS apps. Amsys Training recommends that you start off with Objective-C and then go on to learn Swift, which will be a walk in the park – as a result.
Every current iOS and OS X App has been developed using Objective-C.
Swift is only in its infancy, and Objective-C won’t be going anywhere for the foreseeable future.
Consequently, your future employer or potential clients will be hiring on the basis that you have at least an intermediate understanding of both languages.
During interviews, you may well be asked a question that refers back to the Objective-C language. If you don’t possess this fundamental knowledge you won’t be able to respond with a confident and correct answer – and you will be shown the door pretty quickly!
You will be lost without Objective-C.
Without learning Objective-C, it will be nigh on impossible to learn the Cocoa libraries (Apple’s native objective oriented application programming interface or APIs). These libraries allow you to add animation, networking and the “native platform appearance and behaviour” to your apps, with just a few lines of code. Once you understand the Cocoa way, the complex nature of Objective-C’s syntax will no longer be a problem.
Plus, as a developer, you will be looking at the source code of a variety of apps, some of which will contain Objective-C, as the two languages can be used side by side. If you don’t know Objective-C, then you simply won’t know what certain lines of code have been created to do.
So… if you’re still at a loss on what do.. learn Objective-C first, and then learn Swift!