~/talk

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

Talkat Devnexus 2020 · 2020-02-19..02-21· [java]
github:mcupak
slides:none on file

Live-coding shows concrete Java API replacements and how to use them: creating immutable collections with List.of / Set.of / Map.of and copyOf plus collectors to unmodifiable to avoid wrappers; inspecting stacks lazily with StackWalker with retain class references instead of Throwable.getStackTrace; managing OS processes with ProcessHandle.onExit returns CompletableFuture and startPipeline for piped processes; and an HTTP/2 client (HttpClient/HttpRequest/HttpResponse) versus HttpURLConnection. Examples include a local server on port 8000, jps/jps+grep pipelines, and measurable reductions in boilerplate and runtime overhead.

AI-written summary · about

  1. 0:00Introduction to Java API design
  2. 15:57StackWalker API improvements
  3. 22:13Process API enhancements
  4. 34:05HTTP/2 client in Java 11
  5. 49:00Q&A 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.