~/talk

From Messy to Tidy: A Practical Guide to Writing Clean Kotlin Code

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [kotlin]
links:none on file
slides:none on file

Demonstrates concrete Kotlin fixes: model units to avoid the 20 kg vs 45 lbs bug by using wrapper then value class/inline class so arithmetic compiles to primitives and prevents adding pounds to kilograms; add extension properties (e.g. 20.kg) and operator fun plus returning a new value; warns against overloading unused ops (kg kg → kg²). Recommends characterization tests*, small refactors, dependency inversion and single-function interfaces instead of heavy base interactors.

AI-written summary · about

  1. 0:00Introduction to clean Kotlin
  2. 3:19Compiler and testing for reliability
  3. 7:18Value classes for type safety
  4. 12:19Wrapping strings like email
  5. 14:05Avoiding over-engineered base classes
  6. 17:59Refactoring for clean code
  7. 20:31Clean code as guidelines
  8. 23:40Tools for readability
  9. 24:47Summary and resources
~/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.