~/talk

No Hate on Java 8, But 9–14 Reign Supreme

Talkat SpringOne 2020 · 2020-09-01..09-03· [java]
slides:none on file

Modernizes a Java 8 Selenium test using concrete Java 9–14 features: replace repetitive declarations with var (local type inference) and rules for use; replace loop + list population with Stream.map and collectors; use takeWhile/dropWhile (example list of 11 accounts yields 3 then 8) after sorting; use switch expressions to assign values without fall-through; show preview records (final fields, accessor names without get) and text blocks for embedded JSON, noting previews lack full library support so avoid in production yet.

AI-written summary · about

  1. 0:00Intro
  2. 0:14Beyond Java 8
  3. 5:31Only works for local variables
  4. 5:49Not allowed in headers
  5. 10:58New line for each method call
  6. 13:54Sort for deterministic results
  7. 18:58Cannot mix and match - and yield
  8. 19:42Can throw Exceptions
  9. 23:20Records can be instantiated
  10. 23:38Records are immutable
  11. 24:04Accessors don't start with get
  12. 27:48Text 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.