r/iOSProgramming • u/AcceleratedCode • Jan 13 '16
Discussion Swift or Objective-C?
Hi!
I've just started design of an app I'm making. The app has to be ready by around May this year, and will be using the Parse backend. I've done a quite some programming with Objective-C, but barely anything with Swift and I was wondering what you think I should choose for this project? Should I be using Swift, or will the learning curve be too big to allow for a May launch?
Thank you! Erik
0
Upvotes
0
u/[deleted] Jan 13 '16
Tooling is inadequate.
Language is unstable now and migrating projects to a new version (not necessarily Swift) is always hassle and risky.
Optional types coupled with their realization in Swift are deal-breaker and absolutely redundant for the goal of making apps.
Strange syntax (well, it might not be that strange for functional crowd but for someone with Java and PHP background Swift looks deceptively familiar but then shows a lot of unusual constructs). And those ? and ! are everywhere!
"if (a!=b)" is not the same as "if (a != b)".
Lack of coherent philosophy behind the language. It is a typical "postmodern" language which gives a bunch of features but do not have any bigger idea behind them.
There are more things I did not like but they are not about Swift messiness -- just particular design choices I did not like.
Objective-C, on the other hand, happened to be a solid choice with good IDE support. It is also a quite uncomplicated language with most of concepts easily translated to my existing knowledge. It has a couple of quirks: for example, square brackets but it is not a problem as soon as one realized it is not a method call but sending of message (why not sending it with square brackets). The distinct feature of Objective-C is objects sending messages but unlike to optional types of Swift this is a useful concept which allows powerful patterns.