~/talk

Modern Java: Beyond Version 8

Talkat Craft Conference 2021 · 2021-06-02..06-04· [java]
slides:none on file

Shows how Java 8 test code for verifying an accounts table gets shorter and safer using var for local type inference, Streams instead of loops, and new Stream ops that turn an 11-item list into 3 with takeWhile or into 8 with dropWhile. Demonstrates switch expressions (arrows and yield) to return IDs, replaces POJOs with records, embeds JSON with text blocks, and uses List.of/Map.of; examples use Selenium-style web elements and Java 9–16 features.

AI-written summary · about

  1. 0:00Start
  2. 6:23Only works for local variables
  3. 6:42Not allowed in headers
  4. 11:55New line for each method call
  5. 15:11Sort for deterministic results
  6. 19:38Cannot mix and match - and :yield
  7. 20:08Can throw Exceptions
  8. 23:40Records can be instantiated
  9. 23:59Records are immutable
  10. 24:19Accessors don't start with get
  11. 27:02Text cannot begin on same line as
~/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.