Ask HN: If learning to develop for iOS- start with Obj C or Swift?
11–20 of 53 posts
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#12But in the end you don't have to become an Objective-C pro. Once you feel comfortable using the language, you could start focusing on Swift.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#13Sure, Swift might be better. One day you'll probably learn it. But 99% of the effort in learning Objective C is learning all the frameworks and libraries, and the support to do that is much better in Objective C (at present).
If you already know Objective C, and a looking at starting a new project, Swift might be better. The lack of Swift-specific resources won't hurt, because you should be able to easily translate them from one to the other. But if you don't know either, I'd start with Obj-C.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#14Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#15Swift. All the code will move to Swift eventually, I predict that new APIs won't even be callable anymore from Objective-C in the future. I'm going to write all my code in Swift from now on.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#16Longer answer: Swift is the future, so if you have to pick exactly one of the two, pick Swift only. But Swift is, along some axes, an evolution of ObjC, and you will learn much by getting what you can from the wealth of ObjC/Cocoa/CocoaTouch material that's already out there, then applying it to Swift.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#17The Swift tools aren't mature yet - on Friday I managed to get llvm to segfault on multiple parts of my codebase. Rewriting the same thing in slightly different syntax fixed it.
The code highlight/autocompletion service also crashes frequently, as does Xcode in response to certain pieces of valid code.
Not only that, the amount of Googling you can do with regards to any kind of problem is roughly zero right now. People are still figuring things out, so the amount of help you can get is very, very limited.
Once Google/Stackoverflow fills up more, and llvm stops fucking crashing on perfectly valid syntax, you can switch to Swift.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#18I think that you should learn Swift because it is where most app development will be heading in the future and far easier to pick up than Objective-C. The main disadvantage currently is that the whole corpus of knowledge about iOS development is steeped in Objective-C. My advice is to learn Swift and develop in Swift, but know enough Objective-C to be able to translate it to Swift and read documentation written for Objective-C.
Eventually as the corpus of knowledge in iOS development grows for Swift, this won't be as much of an issue.
Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#19Re: Ask HN: If learning to develop for iOS- start with Obj C or Swift?
#20Anecdotal evidence in favor of Objective-C (Swift wasn't around back then): at an early WWDC, a dev. who was completely unfamiliar with Objective-C finished his first Cocoa application during the "Intro to Cocoa" session, and spoke about his amazement during the feedback. Swift is way more complicated than Objective-C, even if the syntax may seem a lot more familiar if you're used to certain other languages. The reas…