~/talk

The Good, the Bad and the Ugly of Java API design

Talkat Voxxed Days Cluj-Napoca 2019 · 2019-10-30..10-31· [java, api-design]
github:mcupak
slides:none on file

Covers concrete Java API changes and examples from Java 9–12: shows of(...) factory methods (12 overloads, 0–10 args plus varargs) for truly immutable List/Set/Map and Java 10’s copyOf plus stream collectors and Java 11’s Collection.toArray(generator); demonstrates StackWalker’s lazy stack streaming with option to retain class references and walk(func) for limited frames; builds a local HTTP server and uses the Java 11 HttpClient/HttpRequest/HttpResponse (HTTP/2, WebSocket) and ProcessHandle (startPipeline, ProcessHandle.onExit returns CompletableFuture), all working end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 0:44Immutable collections
  3. 7:47Best practices for APIs
  4. 17:11Stack walker API
  5. 23:30Process API improvements
  6. 35:35HTTP client and conclusion
~/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.