~/talk

Delightful Delegate Design

Talkat droidcon Americas 2020 · 2020-11-16..11-17· [api-design, android]
slides:none on file

Shows how Krate, an Android SharedPreferences wrapper, is built with Kotlin property delegates so properties read and write to prefs with normal syntax; implements an int delegate via ReadWriteProperty and a JSON delegate using GSON, fixes type-erasure with reified generics in inline factory functions, and preserves encapsulation with @PublishedApi plus internal delegate classes and extension factory functions. Useful if you want concrete patterns and code-level solutions rather than high-level theory.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:04Kotlin delegates basics
  3. 9:12Crate library overview
  4. 11:20Implementing int delegate
  5. 16:55Visibility and API design
  6. 20:45Handling unsupported types
  7. 26:26Reified generics and type erasure
  8. 31:05Crate’s real API details
  9. 32:09Dependency injection with Crate
  10. 33:31References and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.