~/talk

Kotlin for Swift Developers

Talkat App Builders Switzerland 2019 · 2019-04-29..04-30· [kotlin]
slides:none on file

Converts a small iOS to‑do app (UITableView, JSON API) into a working Android app (RecyclerView) by copy‑pasting and adapting Swift to Kotlin code, demonstrating concrete differences: val vs var, nullability and early returns, Swift value-type structs vs Kotlin reference data classes, smart casting and pattern matching, and using sealed classes instead of Swift enums. Networking uses Retrofit and shows handling nullable response bodies. The converted app runs and the demo highlights exact code changes and pitfalls to watch for.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Show of Hands
  3. 0:47Introduction
  4. 1:16Swift vs Kotlin
  5. 2:21String Interpolation
  6. 4:58Create a Person
  7. 5:10Set a Name
  8. 5:34Greetings
  9. 6:30Initializers
  10. 6:54Default Constructor
  11. 7:33Struts
  12. 7:47DefaultStrut
  13. 8:12Data Classes
  14. 10:13DisplayShape
  15. 10:45SmartCasting
  16. 12:34Demo
  17. 13:44Swift Code
  18. 14:34API Client
  19. 16:04Call API Client
  20. 16:53Convert to Kotlin
  21. 17:50Create Extension
  22. 19:08Implement API Response
  23. 20:21Implement two methods
  24. 23:42Implement viewcontroller
  25. 25:46Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.