~/talk

Brewing Patterns in Java - An Informal Primer

Talkat EclipseCon 2022 · 2022-10-24..10-27· [java, developer-experience]
links:none on file
slides:none on file

Java now surfaces concrete pattern features: instanceof pattern binding is production-ready, record patterns (preview in Java 19) let code destructure fields like radius and x,y directly, and switch patterns (still preview) enable type-based case dispatch and nested extraction. Sealed types constrain hierarchies so exhaustive switches need no default. Underscore is removed as an identifier to serve as a wildcard. Compiler shifts much work to compile time but runtime checks remain and performance impact is unquantified; current APIs reduce boilerplate and prevent common casting errors.

AI-written summary · about

  1. 0:00Pattern matching intro
  2. 1:51History of pattern matching
  3. 3:39Instanceof basics
  4. 5:29Why it simplifies code
  5. 6:13Object model limits
  6. 9:01Type switching
  7. 11:28Future of pattern switches
  8. 13:25Nested matching with records
  9. 15:57Performance considerations
  10. 17:44Data-driven polymorphism
  11. 19:06Records as foundation
  12. 20:10Sealed types and matching
  13. 22:31Practical use cases
  14. 23:16Underscore role
  15. 23:58Resources and closing
~/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.