09.06.2014

Why, despite Swift, do you still need to learn Objective-C?

Objective-C

Why learn Objective-C after Apple announced a new programming language, programmer John Friskis, who teaches Objective-C, explained on the pages of Venturebeat. 

We provide a brief version of the material. 

1. The object structures (frameworks) do not change: iOS applications are created using code that has access to the Cocoa Touch framework. The latter contains functions that allow developers, among other things, to visualize images and text on the screen in response to user requests, create network requests, control the camera, and so on. How a developer interacts with an object structure depends on the programming language they use. Broadly speaking, when you hear that you need to learn Objective-C in order to develop iOS applications, it means that you need to learn how to use the Cocoa Touch framework. Only now, with Swift, you have another way to interact with the object structure. 

2. Objective-C – tested and tested: there are about 1.2 million apps in the App Store created by 9 million developers. This is, to put it mildly, a lot of Objective-C code. It is unlikely that people and companies who have written so much on it will run to rewrite the code of their applications in Swift (and immediately switch to it after investing in development tools based on Objective-C).

3. A lot of educational material. There are a lot of resources dedicated to Objective-C: dozens (if not hundreds) of books, videos, and online courses. More importantly, the developers had time to discover and share with colleagues the best solutions, universal ways to create certain things in Objective-C. It is clear that Swift will come to this too, only it won't even happen in a year or two.

4. You can use both languages. Swift is designed to work side-by-side with Objective-C in Xcode. This means that developers can gradually rewrite their applications for Swift. There is no need to rush to extremes, completely abandon Objective-C. 

In general, if you are new to iOS app development, Objective-C training will allow you to delve into the history of the platform and understand the Cocoa Touch libraries. Subsequently, this will help you work with Swift more effectively.

Source: http://venturebeat.com

Comments
Write a comment...
Related news