~/talk

10 Tips to Make Libraries Kotlin-Friendly

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin, developer-experience]
links:none on file
slides:none on file

Ten concrete Java-to-Kotlin interoperability rules: use nullability annotations but treat them as compile-time contracts (loosening inputs and tightening outputs affects backward compatibility); avoid Java identifiers that are Kotlin keywords; beware extension-method and infix/operator shadowing; prefer JavaBean-style getters for Kotlin property access; add componentN methods to enable Kotlin destructuring; avoid overloads that confuse SAM lambdas or varargs; order function parameters so lambda is last. Also a Checkstyle-based linter exists on GitHub and is published to Maven to catch several of these issues.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:24Designing for compatibility
  3. 6:15Nullability annotations
  4. 12:46Avoiding Kotlin keywords
  5. 14:26Extension method conflicts
  6. 18:21Property inference
  7. 20:03Operator overloading
  8. 22:42Infix function shadowing
  9. 26:34Varargs ambiguity
  10. 28:45Implementing destructuring
  11. 31:37Functional interface issues
  12. 33:40Parameter ordering
  13. 36:50Tools and summary
~/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.