~/talk

Let's make a contract: the art of designing a Java API

Talkat Global Summit for Java Devs 2020 · on Saturday, 2020-08-01· [api-design, java]
slides:none on file

Design rules for Java APIs that actually help users: treat the API as a contract, document ranges and defaults and surface preconditions so callers don't have to guess, prefer return interfaces not concrete classes so implementations can evolve, and preserve compatibility by hiding mutable state and using a single entry point factory methods instead of forcing users to construct internals. Examples reference standard Java types, stream-like producers, and concrete mistakes like returning subclasses or leaking internal collections.

AI-written summary · about

  1. 0:00Introducere în API-uri Java
  2. 5:30Principii de bază în proiectare
  3. 15:42Documentație și claritate
  4. 23:20Flexibilitate și viitor
  5. 33:14Siguranță și protecție
  6. 43:32Evoluție și compatibilitate
  7. 51:10Concluzii și 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.