Hi,
I wish to develop mobile app using xcode ios... which language is best objective-c or swift.....
Hi,
I wish to develop mobile app using xcode ios... which language is best objective-c or swift.....
Which language do you know? Objective-C has been around for a very long time and
has the benefit of having some portability and a large base of examples and support
globally. Swift is still relatively new and though it is now open source, is still in a constant
state of change.
Those new to programming, seem to find Swift easier to learn and read. Those with a lot
of programming experience tend to feel Swift is too close to scripting languages in some
ways and more like Java in structure. Personally, I find Swift cumbersome in that it
requires an additional runtime payload and while trying to hold the programmers hand
and avoid errors, it actually makes them far more likely with the implicit and explicit
unwrappings.
If you are just learning, and want to quickly get off the ground with an app, I'd say
learn Swift. You WILL need, C and Objective-C and many other languages if your
goal is to make a career of development but, Swift will get you started.
Objective-C builds on C. Swift takes ideas from a lot of other languages, mostly
scripting languages and goes from there. It means for small projects a lot less
lines of code overall but also a dependence on implementation within the compilers
and frameworks to do anything useful. It is also only compatible with specific versions
of OSX and iOS. Objective-C and C are compatible with ALL versions of OSX and
iOS (depending on xCode version)... So, if you want to support a device running
iOS 6, you cannot use Swift. Anything before OSX 10.9 or iOS 7, no Swift.
ok.. thank you for your reply...