Live data from Hacker News

Ask HN: Swift or Objective-C for new iOS app in 2017?

news.ycombinator.com

11–20 of 33 posts

Re: Ask HN: Swift or Objective-C for new iOS app in 2017?

#16
I developed in Objective C for years. Have been on the Swift boat for a while now, and not long ago I did some maintenance on an old Obj C project.

Even allowing for the re-learning time and rustiness, there was such a sharp contrast. Swift is just so much more fluid, productive, expressive, and a joy to use.

Yep, there are plenty of issues, stability isn't 100%. Despite that, it is well worth the jump.

Re: Ask HN: Swift or Objective-C for new iOS app in 2017?

#18
Definitely Swift. But: 1) If you plan to develop a SDK/lib compatible with both Obj-C and Swift and don't want to adapt to new Swift changes coming forward or 2) You absolutely can't stand SourceKit related bugs in XCode happening now and then.

then consider Obj-C.

Would go pretty far to use Swift over Obj-C anyway, so I can deal with both 1) and 2) and still use Swift. It will just get better, so probably best to go Swift sooner than later.

Re: Ask HN: Swift or Objective-C for new iOS app in 2017?

#19
post #5

React Native

Depends on the app, but for most I'd say React Native will be suitable.

I used to do native iOS apps in the past, but I've always been more of a web developer than native. This winter, I did a client project in React Native (http://goshakkk.name/works/12min-mobile/) and the experience has been very positive on the iOS side (RN + Android is another story...)

Almost everything you know about React.js holds true in RN. The CSS-like styling and layout with Flexbox are a godsend. ES6 with Flow is type safe, mostly.

Re: Ask HN: Swift or Objective-C for new iOS app in 2017?

#20
Swift unless : 1/ you're working on a very big project ( 3/4 ios dev working on the app for a year full time) And 2/ all the members of your team are already fluent with objc

Then, it's debatable, whether you bet on the swift tool suite to fix all the compiler crashes and compile time issues before your code base reaches the critical point.

Post reply on HN