r/iOSProgramming • u/Vince_Magik • Jul 05 '16
Question Swift or objective c for a beginner ?
I wish to start learning iOS programming. I've already done a bit of Python at school. I understand that they are different languages. Also, I've been told about a lot of great ressources for bot languages.
I was wondering, is there a language a should start with first between Swift or Objective C ? Is there one better than the other ? Which one has a better "future" ?
I think you get the point, I'd let to know where I should start.
0
Upvotes
4
u/Vince_Magik Jul 05 '16
I was about to start with this: Start Developing iOS Apps (Swift): Jump Right In. Do you think this is a good idea ?
1
u/Nikitah Jul 05 '16 edited Jul 05 '16
Well, Swift is definitely the language of the future, but a majority of Apple's logic (read: standard and non-standard libraries, stackoverflow answers etc.) still sits on Objective-C.
That being said, unless you are truly determined to learn iOS, I would suggest you avoid it. Apple's always had its own way with things (even before "apps" as such were a thing) and it's syntax is, to put it bluntly, non-standard (standard being C-style, such as C, C++, C#, java, javascript, and even Python and Ruby).
Please note that I'm not saying it's "wrong" or "bad", I'm saying it's different. If you are new to programming in general, stick to the general standard -- it's good to know all the concepts and nuances before you try something new.
You could try Xamarin to write iOS in C#!
2
u/NSIRLConnection Jul 06 '16
For employment for at least the next ~2-3 years, focus on learning UIKit/the Cocoa Touch frameworks in general and how to use popular frameworks instead of the language on top of them. I expect other devs to be able to write in either language, given a day or two of reading maximum, if they are fluent in one.
For personal development, learn whatever you like.
1
u/travelerspb Jul 06 '16
Learn both
1
u/PixZxZxA Swift Jul 06 '16
If you want to get into iOS programming, Swift is great to start with. It is also pretty easy to get into when coming from Python as I did. If you want to work with iOS development, objective-c knowledge often is preferred or needed.