Recording brought to you by American Express https://americanexpress.io/kotlin-jobs
In this talk we explore how Kotlin JS can be used to write typesafe browser extensions. To achieve this, we rely on external declarations of the browser API produced by a generator, also written in Kotlin.
The first part of the talk deals with writing a mini-compiler for generating the API declarations. It touches on preprocessing and code generating techniques.
In the second part, a live coding session, a small browser extension is developed. We take a look at the project format and build tools involved. Finally, we see how the previously generated declarations help us to write our extension in a type-safe way while receiving help from the IDE.
About Kirill Rakhman:
- Master in Computer Science at Karlsruhe Institute of Technology - Java/Kotlin developer for the Android app at busradar.com - C# backend developer at busradar.com - Open Source contributer to Kotlin.