In this episode, we talk to Jake Wharton of Google on a recent Kotlin coding style guide that they released: the Android Kotlin Guides. In this episode, we pick his brains and ask him how he structured the guide, how he partitioned it to fit some of the idiosyncrasies of Kotlin, what some of the challenges were, when coming up with the guide and much more.
Jake’s one of the best out there and it’s always such a pleasure to have him on the show.
Show Notes
The style guides
- Android Kotlin Guides
- official github repo for Android Kotlin guides
- Google Java Style Guide
- Jetbrains Coding conventions
- Jetbrains collection of Kotlin idioms (also very useful)
Building the style guide
Android Kotlin Guides
- Annotation use-site targets with Kotlin
- guide on interop and file-names for use-site targets
- logical ordering explanation for ordering companion object
- I am the reason for Hungarian notation – Cedric Beust blog post
Mockito when
problems:
- Kotlin reserved keywords
- Mockito Kotlin library (aliases when -> whenever)
Misc
- Where to break lines
- Immutable collection prototypes for Kotlin
- @Kotlin tweet on immutable collections
- @JvmOverloads (we love this!)
Contributing
Sponsors
Contact
- @JakeWharton [twitter.com]
- @fragmentedcast [twitter.com]
- @donnfelker and +DonnFelker
- @kaushikgopal and +KaushikGopalIsMe