Advertisement
UK markets close in 5 hours 43 minutes
  • FTSE 100

    8,088.61
    +48.23 (+0.60%)
     
  • FTSE 250

    19,729.63
    +10.26 (+0.05%)
     
  • AIM

    755.21
    +0.52 (+0.07%)
     
  • GBP/EUR

    1.1669
    +0.0024 (+0.21%)
     
  • GBP/USD

    1.2520
    +0.0058 (+0.46%)
     
  • Bitcoin GBP

    51,047.50
    -1,959.91 (-3.70%)
     
  • CMC Crypto 200

    1,363.60
    -18.98 (-1.37%)
     
  • S&P 500

    5,071.63
    +1.08 (+0.02%)
     
  • DOW

    38,460.92
    -42.77 (-0.11%)
     
  • CRUDE OIL

    82.72
    -0.09 (-0.11%)
     
  • GOLD FUTURES

    2,337.50
    -0.90 (-0.04%)
     
  • NIKKEI 225

    37,628.48
    -831.60 (-2.16%)
     
  • HANG SENG

    17,284.54
    +83.27 (+0.48%)
     
  • DAX

    17,980.23
    -108.47 (-0.60%)
     
  • CAC 40

    8,048.69
    -43.17 (-0.53%)
     

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

chris lambert lyft cto
chris lambert lyft cto

(Lyft CTO Chris Lambert.Lyft)

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.

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.

ADVERTISEMENT

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

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.

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
lyft

(A Lyft ride.YouTube)

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.

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

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



More From Business Insider