Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Delightful Delegate Design (droidcon Americas 2...

Delightful Delegate Design (droidcon Americas 2020)

When developing a library, designing an easy to use API while hiding unnecessary implementation details from clients is fundamental. This talk looks at some of the API design choices made for Krate, an Android SharedPreferences wrapper library.

Márton Braun

November 17, 2020
Tweet

More Decks by Márton Braun

Other Decks in Programming

Transcript

  1. References • Krate  https://github.com/AutSoft/Krate • Delightful Delegate Design 

    https://blog.autsoft.hu/delightful-delegate-design/ • Further reading  Mastering API Visibility in Kotlin  https://zsmb.co/mastering-api-visibility-in-kotlin/  Maintaining Compatibility in Kotlin libraries  https://zsmb.co/maintaining-compatibility-in-kotlin-libraries/  DSL Design  https://zsmb.co/kotlin-dsl-design-with-village-dsl/  Tips for writing a library  https://www.kotlindevelopment.com/tips-for-writing-a-library-in-kotlin/