~/talk

Free Your Lambdas

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

Walks through converting anonymous Comparator and Runnable code into Java 8 lambdas, using java.util.function types (Consumer, Supplier, Function, Predicate), default methods to add composition like and/then/negate, and method references and static factory methods to build comparators and factories. Builds a comparator factory with key extractors, shows generic compare and reversed, and refactors a registry/builder into a lambda-backed factory that hides its map (avoids reflection/concurrency bugs). Demos compile and run and add fail‑fast null checks so bugs surface at lambda creation.

AI-written summary · about

  1. 0:00Intro
  2. 0:52Overview
  3. 1:59Who am I
  4. 2:31Apology
  5. 2:49Questions
  6. 3:09Easy Quiz
  7. 8:55Comparator
  8. 9:40Passing code as a parameter
  9. 10:15Writing a lambda
  10. 11:06Functional interfaces
  11. 12:25Demo time
  12. 15:47Iterable interface
  13. 16:10Abstract method
  14. 16:41Iterable
  15. 18:07Execution
  16. 19:06Runnable
  17. 19:43Random
  18. 20:51Compiler Error
  19. 22:01Writing Lambdas
  20. 22:36Method Reference
  21. 23:53Default Method
  22. 25:36Abstract Methods
  23. 25:54Consumer Interface
  24. 39:15Fail Fast Fail
  25. 41:29Default Methods
  26. 43:50Functional Interface
  27. 45:49Comparators
  28. 53:44Then Compare
  29. 57:24Compare
~/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.