Actions and Detail Panel
Thu, February 2, 2017, 5:30 PM – 8:00 PM CET
17.30 - Doors Open
18.00 - 18.15 - Opening Speech
18.15 - 19.00 - Rafael Winterhalter: Runtime proxies for Kotlin
19.00 - 19.45 - Sindre Moen: Kotlin + Anko
We are still looking for speakers ! If you want to give a talk, feel free to contact us at firstname.lastname@example.org.
Runtime proxies for Kotlin:
A major distinction of Kotlin to other languages running on the JVM is its default of final classes and methods. While deliberate polymorphism is arguably a good design choice, many existing libraries in the Java ecosystem rely on generating runtime subclasses what exacerbates their use with Kotlin. In this presentation, we look into the need for runtime proxies and introduce alternatives to classical subclass proxying. Doing so, we will look into how the Mockito library overcame this problem and is able to mock non-opened Kotlin classes in its second version. Finally, we discuss the difficulties of proxying and mocking classes when running code on an Android virtual machine.
Kotlin + Anko
Anko is a Kotlin library made by JetBrains to make Android pleasant to work with. One of its biggest features is a DSL for creating views programmatically with no hassle at all, but it also features a lot of helpers for interacting with views, intents, services, async tasks, databases and more. Sindre will talk about how to get started using Anko as well as look at some advanced topics, like extensing the layout DSL.