~/talk

Principles of Fluent API Design

Talkat Voxxed Days Zürich 2024 · on Thursday, 2024-03-07· [java]
links:none on file
slides:none on file

Defines cascading API as chainable calls that may split across statements and fluent API as a style that guarantees a single unbroken expression, then gives concrete design choices: homogeneous vs heterogeneous return types, immutable vs mutable chains, and whether terminal steps are fallible. Notes real examples: Truth is heterogeneous and immutable, Flogger is mutable and homogeneous and uses parameterized no‑ops to avoid splitting. Calls out a common bug: Stream.parallel has no parameter so it forces splitting, and recommends escape hatches and runtime checks when splitting would break correctness.

AI-written summary · about

  1. 0:00Fluent API design intro
  2. 1:06What defines a fluent API
  3. 5:21Cascading vs fluent API
  4. 6:05Why fluent APIs matter
  5. 7:29Design choices for fluent APIs
  6. 10:42Fluent utility pattern
  7. 13:32Comparing fluent API designs
  8. 14:18Benefits and trade-offs
  9. 15:22Pitfalls and constraints
  10. 16:46Quick tips for fluent APIs
  11. 17:29Q&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.