Let’s kickoff 2025 with a fresh new episode of The Developers’ Bakery! 🎉
Today, we talk about KotlinPoet with Egor Andreevich.
KotlinPoet is a library from Square used to generate Kotlin code. It’s a great tool to generate code at compile time, and it’s used
by many libraries and frameworks for Android and not only.
Egor has been involved with KotlinPoet for multiple years and today will share with us how KotlinPoet works,
when to use it, and how to contribute to the project.
Show Notes
00.00 Intro00.46 Episode Start01.07 Egor’s Introduction02.07 What is Kotlinpoet?06.34 KotlinPoet use case08.43 When to use code generation?13.58 Templates vs KotlinPoet17.32 Generating code that definitely compiles19.46 Kotlin Poet 2.024.13 The challenges of KotlinPoet27.44 Doing OSS at Square32.55 Who’s maintaining KotlinPoet?34.01 How to contribute to KotlinPoet?36.53 How Egor got involved with KotlinPoet?38.48 What’s next for KotlinPoet?42.05 Further reading43.38 Where people can find you online?Resources
square/kotlinpoet on GitHub KotlinPoet Official Website Exploring Kotlin Symbol Processing: A Practical Guide - Video From Droidcon London @Egorand on GitHub @egorand.dev on Bluesky Egor’s BlogShow links
Podcast Website The Developers’ Bakery on Spotify The Developers’ Bakery on Apple Podcasts The Developers’ Bakery on Google Podcasts @thebakerydev on Twitter @cortinico on Twitter