Opleiding: Kotlin Advanced
Ready to master advanced Kotlin techniques? Learn operator overloading, generics, reflection, DSL construction, and more to build clean, powerful APIs and applications.
Developers with foundational Kotlin knowledge advance their skills with powerful language features. This course builds upon basic Kotlin knowledge, diving deep into advanced topics that enable you to write more expressive, type-safe, and elegant code.
You will learn advanced Kotlin features through practical examples and hands-on exercises. Topics include operator overloading, higher-order functions, generics with variance, annotations and reflection, and building internal DSLs. This course follows the training "Kotlin Fundamentals" and covers chapters 7-11 from "Kotlin in Action".
- Introduction
- Conventions
- operator overloading, unary and arithmetic operators, conventions for collections, destructuring, delegated properties and lazy initialization
- Higher-Order Functions
- declaring higher-order functions, inline functions, control flow in higher-order functions
- Generics
- generic functions and classes, type parameter constraints, type erasure, reified type parameters, variance (covariance and contravariance), use-site variance, star projection
- Annotations and Reflection
- applying and declaring annotations, reflection API, parsing annotated code, cont…