0:0024:43

Kotlin vs. Swift, Not So Different After All

Bianca Curutan 24:43 2020

Kotlin and Swift look like rival camps but share one ideology

Postmates runs about 90% Swift on iOS and 70% Kotlin on Android, and some of its engineers ship to both clients. Bianca Curutan, a mobile engineer who joined with zero Android experience and now leads an Android team, walks through side-by-side code to test a claim from her master's research. For any developer stuck on one platform, the question is how far apart these two languages really are.

See the side-by-side examples and learn what knowing both languages does for your mobile career

Watch on YouTube

In short

Bianca Curutan, a mobile engineer at Postmates who works on both iOS and Android, walks through side-by-side code examples to show that Kotlin and Swift follow the same programming paradigm. She argues that both languages solve the same problems left by Java and Objective-C, so learning one makes the other easy and helps mobile teams collaborate across platforms.

“And semantically, they share the same ideology since they solve the same problems created by their ancestor languages.”
“Fortunately, even if you don't know a specific language, from my experience and for exactly what my graduate research was on, the idea is if you know programming concepts, it should be fairly easy to start picking up new languages. In the end, it's mostly just syntax.”

What you will learn

  • Map core Kotlin constructs such as val, var, optionals, lambdas and interfaces to their Swift equivalents.
  • Explain why Kotlin and Swift are safer and less verbose than Java and Objective-C while staying interoperable with them.
  • Plan a move from iOS to Android, or the reverse, by building on the concepts the two languages share.
  • Weigh native Kotlin against Flutter or React Native based on whether your team comes from web or mobile.
  • Start learning a mobile language by building a simple app, such as a calculator, from a tutorial.

Details

Level
Beginner
Format
Tech talk
Technical depth
Practitioner
For
Student, Early career, Mid-career
Length
24:43
Published
July 2020

Questions this talk answers

How similar are Kotlin and Swift really?

Syntactically and functionally they are close enough, and semantically they share the same ideology because they solve the same problems created by Java and Objective-C.

What do Kotlin and Swift improve over Java and Objective-C?

They are safer, catching more issues such as unwrapped optionals at compile time, less verbose with less boilerplate, support functional programming, and remain interoperable with their ancestor languages.

Why should a mobile developer learn both languages?

It deepens understanding of development concepts, makes the leap between iOS and Android easier, speeds up native development and testing, and encourages cross-team collaboration and app parity.

What should an aspiring iOS developer learn?

Swift first, since many companies including Postmates expect it in interviews, plus Objective-C because larger companies still use it. Bianca also recommends building your own simple app.

Should I learn Flutter, React Native or Kotlin?

It depends on your background: in Bianca's observation React Native tends to suit web developers, while Kotlin is more common for pure native mobile development.

About this talk

Android and iOS are two very different platforms, but is that also the case for Kotlin and Swift? In this talk, we’ll walk through examples to demonstrate that these two languages, in fact, follow the same programming paradigm. Understanding these similarities can help developers work more collaboratively and efficiently across client teams.

Topics

Related talks

Browse the library