~/talk

Type safe experimentation

Talkat droidcon San Francisco 2024 · 2024-06-06..06-07· [typescript, android]
links:none on file
slides:none on file

Generates type-safe Kotlin accessors for Optimizely features and experiments to eliminate string-typo bugs and make unused flags discoverable, using Optimizely as source, KotlinPoet to emit sealed classes/objects and a generic variable type, and kotlin-compile-testing plus reflection to compile and assert generated code contains expected instance and key values. Adds a Gradle plugin and task that fetches flags, writes code into a package, and is verified with Gradle test runs; the demo generation and tests succeed.

AI-written summary · about

  1. 0:00Type safe experimentation intro
  2. 2:12String-based feature flag problems
  3. 3:14Type safe flag accessors
  4. 5:44JavaPoet basics
  5. 7:31Sealed classes for flags
  6. 11:48Runtime compilation testing
  7. 15:02Gradle plugin for codegen
  8. 18:15Plugin implementation testing
  9. 20:43Demo and showcase
  10. 21:06Closing remarks & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.