~/talk

Java 8: the good, the bad and the ugly

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

Java 8 adds lambdas, Optionals and streams but the talk gives actionable limits: lambdas replace boilerplate but avoid block lambdas and prefer single-line or named helpers; plain Java 8 cannot throw checked exceptions inside lambdas so wrap or rethrow as RuntimeException or use utility wrappers; Optionals are for return values only and must never be assigned null; streams are lazy and single-use so streams are lazy and single-use — don’t return them, beware infinite streams and the shared parallel fork/join pool.

AI-written summary · about

  1. 0:00Start
  2. 5:47Why Java 8
  3. 9:10Functional Interfaces
  4. 11:08Java 8 Comparator
  5. 12:55Abstraction
  6. 14:50Writing a lambda
  7. 18:16Don't do Block Lambda
  8. 20:21Type inference
  9. 21:08Parentheses
  10. 21:51Exception handling
  11. 22:51Checked Exceptions & Lambda
  12. 24:51Exception Utility
  13. 28:47Using Optional
  14. 33:14JAVA 8 Streams
  15. 34:12Stream Example
  16. 35:52forEach ??
  17. 38:02Puzzler
  18. 42:31Consume the stream
  19. 43:23Multiple filters
  20. 44:19Infinite stream
  21. 45:56Watch out with parallel
  22. 47:24Summary
~/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.