fun() Talk: Exploring Kotlin Functions
summary
Shows how Java methods convert to Kotlin functions using the Java-to-Kotlin converter and Kotlin Koans and demonstrates concrete fixes: use @JvmStatic/@JvmName to clean Java interop, generate overloads with @JvmOverloads, and declare extension functions for Context like toast and view visibility. Builds wrappers for shared preferences and fragment factories, uses inline to avoid allocations for higher-order lambdas, and proves these patterns reduce boilerplate while preserving performance and Java compatibility.
AI-written summary · about
chapters (23)
- 0:00Intro
- 2:06Easy to Get Started
- 2:38Hello Java Method
- 2:56Java Method Conve
- 3:20Further Simplificati
- 4:05Flexible & Convenient
- 4:46Parameter Basics
- 5:32Default Parameters
- 8:08Named Arguments
- 11:10Variable Number of
- 14:40Return Types: Non
- 16:18Variations In Scope
- 16:34Top-Level Function
- 19:18Member Functions
- 20:05Local Functions
- 23:10Companion Objects
- 27:43infix Functions: stdl
- 29:41Extension Functions
- 31:43Higher-Order Funct
- 35:01inline Functions
- 38:25Cleaner Syntax
- 39:00Useful Collection Fu
- 41:27Useful String Funct
related talks
36mKotlin, Beyond the Basics
27mWhy Kotlin is my favourite example of Functional Programming?
42mIdiomatic Interop with Kotlin
34mKotlin: Uncovered
52mPowered by Kotlin
39mHow to Kotlin - from the lead Kotlin language designer
52mKotlin for Java Programmers
39mTeach Kotlin to play well with Java - Optimization tips for Interoperability
