r/iOSProgramming • • Jan 10 '16

Discussion The most important decision: Objective-C or Swift

Assume you're at a Fortune 500 that is launching a new business unit. No legacy code to deal with. It is now the beginning of 2016 and it is just you and your CTO. You are empowered to decide whether the mobile team that eventually will be hired should build the iOS app in Objective-C or Swift. What do you decide and why?

0 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/mmellinger66 Jan 11 '16

I've been working for over 20 years as a developer. I'm well aware of how conservative industry is. Large enterprise is extremely slow to change. Choose whatever works for you. However, I'm sure many developers and companies will realize the large productivity gains even with the current state of Swift. It's pretty obvious.

Your argument to wait is the classic argument that works with most technologies. (e.g. Stick with Python 2.x vs 3.x). However, with Apple things tend to move a bit quicker as far as them pushing developers towards their new technologies. They only released their tvOS examples in Swift, for example. It's possible that all new WWDC examples will be Swift.

Anyway, watch out for the companies that realize that writing 30% less Swift code that's easier to write correctly. They might eat your lunch:

http://www.sunsetlakesoftware.com/2014/12/02/why-were-rewriting-our-robotics-software-swift

2

u/brendan09 Jan 11 '16 edited Jan 11 '16

watch out for the companies that realize that writing 30% less Swift code that's easier to write correctly.

  1. As stated, the less code comes mostly from a rewrite, not the language.
  2. Watch out for companies losing clients (like dozens have already) from jumping to Swift too prematurely. Several people on this sub alone have mentioned how they left development agencies / fired devs for choosing to jump on the Swift bandwagon too soon. It's irresponsible and a waste of money.

It's called responsibility, and the ones who have it keep their clients / jobs. Pretty much every respected iOS developer is saying to keep using Objective-C for now. It's the responsible thing to do. We get paid a hefty sum of money to make responsible decisions, like making sure we transition technology stacks when appropriate: Not too early, and not too late. Less than 1.5 years after a brand new language comes out, and less than 4 months since the last breaking syntax revision, is most certainly not that time

When a company's livelihood / primary product is dependant upon software, you don't make bandwagon decisions and jump on tech before it's ready. It's a carefully calculated move that must be considered from all angles.