Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between OBJECTIVE-C and SWIFT programming language?

user-image
Question added by Deleted user
Date Posted: 2014/11/24
هاشم المشارقة
by هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)

In fact i don't know a lot about SWIFT but what I know is that Objective-C is a special version of C programming language which is developed by Apple and Apple use it to develop its software like iOS.

Also iOS application developer use Objective-C to write their applications.

 

Thanks for inviting.

محمد توفيق
by محمد توفيق , IOS & Web Developer , H-Equities

Swift is claimed by Apple to be faster then Objective-C  but for the usage of iOS developemnt, a simple user would not recognize the difference between an app developed in Swift or Objective-C.

 

Swift is unlikely to result in applications that run much faster than applications developed in Objective-C. Even though the two languages are quit different, both target the same Cocoa and Cocoa Touch APIs, iOS and OS X a, both are statically typed languages and both use the same LLVM compiler, so they are not that different after all. There will be performance differences, as the two languages aren't identical after all, but don't expect significant differences.

 

Swift is also developed from Apple to appeal to new programmers because it is similar to languages such as Ruby and Python than it is Objective-C.

 

Also Swift handles strings more easily, swift tuples offer compound variables and also, coders don't need to spend time annotating variables with type information and risk making mistakes; in most cases, the compiler can infer the type from the value that a variable is being set with.

Rehan Faiz Mohammad
by Rehan Faiz Mohammad , Research Assistant , Texas A&M University

Objective C is a programming language developed in1980's. Its actually "c" language with additional object oriented features.Tom Love developed C with flavor of smalltalk and made it objective. NeXT company got objective C licensed in1988 and sold a product named project builder(now named Xcode) to Apple which was used to build MAC OS X in1996. 

 

Swift Language is a language licensed by APPLE in2014. It has all the object oriented features and Cocoa, Cocoa Touch frameworks (developed by apple while building the versions of MAC OSX )but will not be able to use C. Swift has many libraries which would reduce the effort of writing many lines to developers.

The programmers will observe a big difference while coding. Unlike using mostly special characters in objective c, There will be less use/ or no use of those and the syntax would be less(increase in maintainability) to implement the same functionality.

Example : Creating an Array with strings

using Objective C:  NSArray  *sampleArray = [[NSArray alloc] initWithObjects:@"Rehan", @"Faiz", @"Mohammad", nil];

using Swift : var sampleArray = ["Rehan", "Faiz", "Mohammad"]

 

Abdul Khader Shaik
by Abdul Khader Shaik , Cyber Crime Lawyer , Grofers

Thanks for the inviting..

I haven't experienced the above programming languages yet..,(google is the best solution.,try there)

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.