Lyft made a big bet on Apple's secret smash hit, Swift, and it paid off in a huge way

Advertisement

chris lambert lyft cto

Lyft

Lyft CTO Chris Lambert.

Just over a year ago, ride-hailing app Lyft made a huge bet by rewriting its iPhone app entirely in Swift - the Apple-created programming language that's taking the technology world by storm.

Advertisement

It was a big risk: Swift is still largely untested in real-world apps, having only been introduced in 2014.

Meanwhile, Objective-C, the language that most iPhone apps are written in, was invented in 1984, making it a very tried-and-true and familiar experience for many programmers.

But it was also a very calculated risk, explains Lyft CTO Chris Lambert. With Swift, Apple "signaled that this was the future" of iPhone-app development, Lambert says, and Lyft wanted to be ready for whatever came next.

"It turned out to be a really fortuitous move," Lambert adds.

Advertisement

In the year since rewriting its iPhone app in Swift, Lambert says, it's been able to add more features faster while simultaneously cutting down on the time it takes to open the app. The net result: More iPhone owners taking more Lyft rides, which is very good for business.

It's had some other, mostly unanticipated benefits, too. In the last year, Lambert says, they've actually doubled the lines of code that power the Lyft app, owing largely to the fact that the startup's developers are that much more productive in the new language.

Outside of Lyft, Swift is winning praise as the easiest programming language to learn, and one that's just fun to write code for. Lambert praises Apple for its willingness to use Swift to rethink how programming languages are made.

"Every small detail of the language has been rebuilt," Lambert says.

Swift on the job

Plus, adopting Swift in such a big way was a sign to top job candidates that they're not just "dabbling" in the programming language, meaning that they've added 10 new Swift developers in the last year alone - no mean feat amid the ongoing Silicon Valley talent-recruitment wars. Lyft is serious about Swift, and the developer community is responding.

Advertisement

The switch to Swift brought new energy to Lyft's iPhone team, Lambert says. When Swift was first announced in 2014, Lambert says, Lyft's developers started teaching themselves the new programming language on nights and weekends in preparation for the big shift.

People were so excited that they got a little ahead of themselves: It wasn't yet time to move over from Objective-C. "We actually had to actively stop people from using Swift," Lambert says.

lyft

YouTube

A Lyft ride.

Still, Lambert says that he's glad Lyft made the move when it did: Rewriting the app "is not a trivial effort," he says, and the sooner they did it, the less code they'd have to reinvent in Swift from scratch.

In the meanwhile, Lambert admits Lyft runs into "rough edges" with Swift here and there, but Apple is working hard with the programming language's community to make it better for everybody.

Advertisement

"Apple has been very, very responsive to getting the kinks worked out," Lambert says.

NOW WATCH: Apple invested $1 billion in this Chinese company