~/talk

Lambda Chops: Recipes for Simpler, More Expressive Code

Talkat Oracle OpenWorld 2017 · 2017-10-01..10-05· [java]
links:none on file
slides:none on file

Shows concrete recipes: use Optional.map null-safe chains instead of nested null checks; implement a supplier-based firstNonNull so candidates run lazily or in parallel; write small factory methods that build a FileVisitor from one-argument lambdas and use an unchecked wrapper for checked exceptions to keep lambdas concise; prefer java.util.function types, use Comparator.comparing and JUnit 5 dynamic tests for compile-time safety, and replace double-checked locking with a library Lazy for correct, simple lazy init.

AI-written summary · about

  1. 0:00Intro
  2. 5:06Lambda trick: Null-Safe Navigation
  3. 8:16Lambda trick: first non-null object
  4. 12:14Lambda Trick: Multi-method interfaces
  5. 17:41Exception Transparency via Generics
  6. 19:09"Uncheck" Exceptions
  7. 21:38Resource management In Java 7
  8. 28:17Make a comparator
  9. 30:36JUnit 5 Parameterized Tests
  10. 32:41JUnit 5 Type-safe Parameterized Tests
  11. 36:39Best practices
~/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.